Skip to content

Schema's ParseError does not extend Error #1663

Description

@sofiaritz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions