-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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(v2): Add all webpack module aliases to type declaration file #2687
Conversation
Deploy preview for docusaurus-2 ready! Built with commit f1242b1 |
@SamChou19815 will your PR solve this issue? #2675 |
Yes, but we will need another publish to include this change. |
@SamChou19815 excellent, I will make a new release of course! |
@SamChou19815 thank you! |
@lex111 have all of these changes been published? I only have the |
@Ehesp yes, I published a new version of D2 - |
Ah thanks - that version wasn't showing on npm - updated and works. Thanks! |
Motivation
With these additions, all typescript red squiggly lines will be gone once user install
@docusaurus/module-type-aliases
and create atypes.d.ts
that references@docusaurus/module-type-aliases
.Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
types.d.ts
with content/// <reference types="@docusaurus/module-type-aliases" />
to the root ofpackages/docusaurus-theme-classic
.@docusaurus/...
,styles.module.css
andstyles.css
no longer has red squiggly lines.Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)