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

incorrect type for permalink.headerLink() #108

Closed
benblazak opened this issue Nov 28, 2021 · 2 comments
Closed

incorrect type for permalink.headerLink() #108

benblazak opened this issue Nov 28, 2021 · 2 comments

Comments

@benblazak
Copy link

benblazak commented Nov 28, 2021

headerLink: () => PermalinkGenerator

Should probably allow for options, like the other types nearby.

TypeScript complains e.g. about permalink: MarkdownItAnchor.permalink.headerLink({ safariReaderFix: true }).

Workaround: Put a // @ts-ignore above the line.

@valeriangalliat
Copy link
Owner

valeriangalliat commented Apr 8, 2022

Thanks for reporting! I just fixed this in v8.6.1 so you can remove your // @ts-ignore. Sorry for the late reply :)

@benblazak
Copy link
Author

benblazak commented Apr 8, 2022

thanks!

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

No branches or pull requests

2 participants