Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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