Hi!
If I understood correctly from reading the library's code and trying to debug some issues, Schema's ParseError does not seem to extend Error, which breaks some error handling systems (in my case, Hono's error handling) due to ParseError instanceof Error being false. AFAIK in the 0.x version it does extend Error.
Is this the case? If so, is this expected behavior? Thank you for your work! :)
EDIT: For completeness, my application is running in Deno and the dependency is specified as npm:typebox@^1.3.9
Hi!
If I understood correctly from reading the library's code and trying to debug some issues, Schema's
ParseErrordoes not seem to extendError, which breaks some error handling systems (in my case, Hono's error handling) due toParseError instanceof Errorbeing false. AFAIK in the 0.x version it does extendError.Is this the case? If so, is this expected behavior? Thank you for your work! :)
EDIT: For completeness, my application is running in Deno and the dependency is specified as
npm:typebox@^1.3.9