-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Update typings to support ESM #141
Update typings to support ESM #141
Conversation
This comment has been minimized.
This comment has been minimized.
📓 the removal of namespace makes this diff look larger than it is. |
/cc @remcohaszing |
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.
Should the tsconfig
also be updated to support ES2020? https://github.com/unifiedjs/unified/blob/main/types/tsconfig.json
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This will be a part of unified version 10 release |
Initial checklist
Description of changes
Update typings to support ESM style imports (part of dc46bc5)
For now keeping the typings as a
.d.ts
file, JSDoc could be nice down the road, but overload support and split interfaces (FrozenProcessor
vsProcessor
) are still challenging in JSDoc and potentially more difficult to maintain than the.d.ts
file.