You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Tags written to a file don't necessarily have to be what's specified in WriteTags. See this example in use today:
Attrib is not a tag mentioned in the WriteTags TypeScript typing, so we use @ts-ignore to get TS to ignore the typing error we are causing here, despite write allowing the tag to actually get written to the file.
Describe the solution you'd like
Give write a generic argument that extends WriteTags shape, e.g.:
Describe alternatives you've considered
An alternative to the above proposal would be not requiring the generic to extend WriteTags at all, but I'm not sure that's a great idea. (edited, forgot to fill this out)
Additional context
~
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Tags written to a file don't necessarily have to be what's specified in
WriteTags
. See this example in use today:Attrib
is not a tag mentioned in theWriteTags
TypeScript typing, so we use@ts-ignore
to get TS to ignore the typing error we are causing here, despitewrite
allowing the tag to actually get written to the file.Describe the solution you'd like
Give
write
a generic argument that extendsWriteTags
shape, e.g.:Describe alternatives you've considered
An alternative to the above proposal would be not requiring the generic to extend
WriteTags
at all, but I'm not sure that's a great idea. (edited, forgot to fill this out)Additional context
~
The text was updated successfully, but these errors were encountered: