We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parser currently throws an error when parsing attributes with union types.
See also this repro https://playcanvas.com/editor/scene/2086873. Parse the scripts and the editor will throw an error
/** @enum {number} */ const MyEnum = { A : 0, B : 1, } export class Test extends Script { /** * @attribute * @type {MyEnum|string} */ n = MyEnum.A; }
The parser should at least not throw an error. It could ignore the attribute and warn, or potentially take the first type as the attribute type
The text was updated successfully, but these errors were encountered:
marklundin
No branches or pull requests
The parser currently throws an error when parsing attributes with union types.
See also this repro https://playcanvas.com/editor/scene/2086873. Parse the scripts and the editor will throw an error
What should happen
The parser should at least not throw an error. It could ignore the attribute and warn, or potentially take the first type as the attribute type
The text was updated successfully, but these errors were encountered: