-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
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
TypeScript error: "tagName" does not exist in type 'ClassDeclaration' #43
Comments
This seems like a bug in the schema. A custom element has a tagname: https://github.com/webcomponents/custom-elements-manifest/blob/master/schema.d.ts#L198 so the output JSON in this case is correct. Looks like this is the offender though: https://github.com/webcomponents/custom-elements-manifest/blob/master/schema.d.ts#L71 Would you mind creating an issue in https://github.com/webcomponents/custom-elements-manifest ? |
As for some of your comments in your PR, it is still early days for |
No problem. Opened an issue here: webcomponents/custom-elements-manifest#69 And thanks, I understand it's early days for |
Great, ill close this issue then - lets continue discussion in the other repo. Thanks! |
Checklist
--dev
flag to get more information?In the playground (or command line), use this custom element:
You'll get this JSON:
click to expand
If you compare this to the schema, it doesn't match because of
tagName
on theClassDeclaration
.You can repro using a simple TypeScript file:
click to expand
Then run:
You'll see the error:
Expected behavior
The output schema should match the one from
custom-elements-manifest
.I'm not sure if this is a problem in the analyzer or in the
custom-elements-manifest
schema itself, but I'm just reporting it.The text was updated successfully, but these errors were encountered: