We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This module does not seem to provide typescript definitions. This causes compile errors in the projects using TypeScript + marked.
TypeScript + marked
Do you think it be possible to provide these either out of the box or through @types/marked-gfm-heading-id?
@types/marked-gfm-heading-id
The text was updated successfully, but these errors were encountered:
I took the time to write it for my project. Something like this should do the trick
declare module 'marked-gfm-heading-id' { type Extension = { hooks: { preprocess: (markdown: string) => string } renderer: { heading: (text: string, level: number, raw: string) => string } } export type Parameters = { prefix?: string } export const gfmHeadingId: (params?: Parameters) => Extension }
Sorry, something went wrong.
If you want to create a PR that adds the types we could add it
🎉 This issue has been resolved in version 3.0.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
Issue
This module does not seem to provide typescript definitions. This causes compile errors in the projects using
TypeScript + marked
.Do you think it be possible to provide these either out of the box or through
@types/marked-gfm-heading-id
?The text was updated successfully, but these errors were encountered: