-
Notifications
You must be signed in to change notification settings - Fork 6
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
[FIX] TypeScript type definition support #252
Conversation
Lazy-loading breaks the automatic type definition detection from TypeScript. Therefore we need to manually declare the exported types.
jsdoc.json
Outdated
@@ -7,7 +7,9 @@ | |||
"includePattern": ".+\\.js$", | |||
"excludePattern": "(node_modules(\\\\|/))" | |||
}, | |||
"plugins": [], | |||
"plugins": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mixed whitespaces and tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why we have spaces here but our editorconfig enforces tabs. I'll convert to tabs.
@@ -56,5 +58,5 @@ | |||
"id": "github_link" | |||
} | |||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mixed whitespaces and tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Lazy-loading breaks the automatic type definition detection from
TypeScript. Therefore we need to manually declare the exported types.
Adds a small jsdoc-plugin to remove the import() comments as JSDoc is unable to parse them