-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add TypeScript types #12
Conversation
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.
Thanks @remcohaszing! 🙇♂️
Welcome the Unified! Glad to have you here! 👋
Skimming the changes this looks generally good.
A few tweaks that could help with reviewing:
- could
.ts
files be included in the types of files prettier formats? (in theformat
script in package.json) - could
dtslint
be added to validate the typings? - could a types test file be added with some example uses of the plugin in TypeScript?
A recent PR made to remark-toc
gives an example of most of these remarkjs/remark-toc#29
- Change prettier glob to current directory - Add `*.md` to `.prettierignore`, since it wasn’t formatted. - Format code using Prettier. - Add TypeScript tests. - Add dtslint.
This comment has been minimized.
This comment has been minimized.
Thanks for the quick feedback! I did the following:
|
I haven't run into that specific error, but on other repo's I've run into random errors with |
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.
Thanks @remcohaszing !
Released in 2.0.0. Thanks @remcohaszing! |
The implementation is based on https://github.com/remarkjs/remark/blob/master/packages/remark-stringify/types/index.d.ts