-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Can't add custom formatter (Object literal may only specify known properties, and ''sub'' does not exist in type 'TagDefinitions'.) #223
Comments
I guess this is an issue with how TagDefinitions are defined in DefinitelyTyped repo. It must be open for new keys in order to work properly. |
Got it, thanks for the prompt response. So I guess I need to add something like: |
Yep. And I'm not sure why they decided to specify existing tags instead of just That being said, |
I noticed in the |
At some point - yes, I think. |
Not going to research but I think it was unclear if |
It looks to me that DT got the type for tags the way |
Thanks to @webstech effort, types for v8 are now available. Clarification on bundling types with |
The goal
I'm trying to add a subscript formatter to replace the numbers in the sub tag with their unicode equivalents.
This is in Vue3 with typescript, I've added the "@types/html-to-text" to my project, but when I add the custom formatter to the "tags" property I get a typescript error:
Here's the relevant segment of the code (the formatter is obviously unfinished i was just trying stuff out):
The text was updated successfully, but these errors were encountered: