-
-
Notifications
You must be signed in to change notification settings - Fork 238
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] Attribute interface is wrong (wrong property name for "name"). #124
Comments
Cool, want to send a PR? |
I guess this issue relates to DefinetlyTyped because we don't ship any |
I'll send a PR to DefinetlyTyped then, thank you for your answer @inikulin. |
@inikulin I think it would be nice to ship them by the way, as their new |
Makes sense. Is there any tool that generates |
Well, I know they've added jsdoc support as part of microsoft/TypeScript#4789 meta-issue which allows to detect JSDoc types as if they were native TypeScript types, but I'm not sure if there's a tool to generate definitions out of that info. |
Some interesting links here DefinitelyTyped/DefinitelyTyped#2103 |
We might want to try https://github.com/fivetran/typescript-closure-tools - I suppose Closure annotations are compatible with JSDoc? |
Created separate issue: #125 |
Issue created on DefinetlyTyped: DefinitelyTyped/DefinitelyTyped#9235 |
This issue is a d.ts problem. in parse5/index.d.ts, you have this interface :
But if you get a node and log its attributes, you have this:
Proof:
then check index.d.ts to see that the interface is not the good one (property "key" should be named "name").
The text was updated successfully, but these errors were encountered: