Skip to content
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

Merged
merged 3 commits into from
Jun 26, 2020
Merged

[FIX] TypeScript type definition support #252

merged 3 commits into from
Jun 26, 2020

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Jun 24, 2020

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

Lazy-loading breaks the automatic type definition detection from
TypeScript. Therefore we need to manually declare the exported types.
@matz3 matz3 requested review from svbender and tobiasso85 June 24, 2020 11:00
@coveralls
Copy link

coveralls commented Jun 24, 2020

Coverage Status

Coverage decreased (-0.7%) to 86.717% when pulling 66622e3 on fix-ts-support into bc5eafb on master.

jsdoc.json Outdated
@@ -7,7 +7,9 @@
"includePattern": ".+\\.js$",
"excludePattern": "(node_modules(\\\\|/))"
},
"plugins": [],
"plugins": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed whitespaces and tabs

Copy link
Member Author

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"
}
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed whitespaces and tabs

Copy link
Contributor

@tobiasso85 tobiasso85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@matz3 matz3 merged commit f379094 into master Jun 26, 2020
@matz3 matz3 deleted the fix-ts-support branch June 26, 2020 12:55
matz3 added a commit to SAP/ui5-tooling that referenced this pull request Jun 26, 2020
matz3 added a commit to SAP/ui5-tooling that referenced this pull request Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants