Closed benhohner closed 2 years ago
IRecognitionException doesn't extend Error, so for example
IRecognitionException
Error
parserInstance.errors[0].stack
is not recognized by typescript.
Example of what I'm talking about available here: https://codesandbox.io/s/happy-feather-jepi7f?file=/src/components/parser.ts:1513-1535
Thanks @benhohner 👍
IRecognitionException
doesn't extendError
, so for exampleis not recognized by typescript.