Skip to content

checker function will throw error if type of provided parameter mismatchΒ #52

@reallyimeric

Description

@reallyimeric

For example, if we

checker = schema({ a: 1 })

then we do

checker(123)

checker will throw

TypeError: Cannot use 'in' operator to search for 'type' in 123

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