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
Distribute typescript definitions #3531
Comments
Thanks for the pointers and suggestion. Here are the An advantage of publishing them ourselves is we can update them together with KaTeX versioning (though it's pretty rare for them to change, we might add an option or two). Overall it seems like a good idea, related to #2110. |
The @types/katex type definitions seem completely broken. Katex as of v0.15 seems to have only a default export, so I have to |
Note that those definitions seemed to work with Katex v0.13, but have been broken somewhere between v0.13 and v0.15. |
It appears this was a breaking change in v0.14: https://github.com/KaTeX/KaTeX/blob/main/CHANGELOG.md |
I am not sure who is maintaining type files, but due to microsoft/TypeScript#50690, types are broken with esm.
needs to be added in |
Is someone on this thread willing to put together a PR to add a |
Is your feature request related to a problem? Please describe.
When using
katex
in typescript, one has to use the@types/katex
package to get some type interference. However, these type definitions are quite minimal.Describe the solution you'd like:
Provide full typescript definitions automatically.
Describe alternatives you've considered:
Using
@types/katex
.Additional context:
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
The text was updated successfully, but these errors were encountered: