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
In my parser I want to overwrite the canRecoverWithSingleTokenDeletion method (similar as in SAP/xml-tools). Unfortunately, I am using Typescript and CstParser does not declare this method of the Recoverable mixin in the type definition. So I end up with the error Property 'canRecoverWithSingleTokenDeletion' does not exist on type 'CstParser' when calling it with super.canRecoverWithSingleTokenDeletion(expectedTokenType). Would it be possible to add it to the type definitions? Otherwise, it is quite hard to work around it. The only thing I can think of is to completely re-declare it.
I created a PR with an added extra method canTokenTypeBeDeletedInRecovery to make the API consistent with the already available canTokenTypeBeInsertedInRecovery.
The text was updated successfully, but these errors were encountered:
medihack
changed the title
Missing type definitions of parser mixins
canRecoverWithSingleTokenDeletion missing in type definitions
Jan 29, 2022
bd82
changed the title
canRecoverWithSingleTokenDeletion missing in type definitions
customizing automatic token deletion recovery by exposing canRecoverWithSingleTokenDeletion API
Feb 14, 2022
In my parser I want to overwrite the
canRecoverWithSingleTokenDeletion
method (similar as in SAP/xml-tools). Unfortunately, I am using Typescript andCstParser
does not declare this method of theRecoverable
mixin in the type definition. So I end up with the errorProperty 'canRecoverWithSingleTokenDeletion' does not exist on type 'CstParser'
when calling it withsuper.canRecoverWithSingleTokenDeletion(expectedTokenType)
. Would it be possible to add it to the type definitions? Otherwise, it is quite hard to work around it. The only thing I can think of is to completely re-declare it.I created a PR with an added extra method
canTokenTypeBeDeletedInRecovery
to make the API consistent with the already availablecanTokenTypeBeInsertedInRecovery
.The text was updated successfully, but these errors were encountered: