Skip to content

assertType throws errors on valid union null results #73

Open
@stevenlaidlaw

Description

@stevenlaidlaw

const body: string | null = assertType<string | null>(null);

This simple test will cause a TypeGuardError to be thrown.

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