Skip to content

Improve input validations #6

@andykswong

Description

@andykswong

Add more comprehensive input parameter assertions, and make them tree-shakeable for minimal runtime overhead.
Currently, some checks still exist on production build, while others rely on the following pattern for tree-shaking:

if (process.env.DEBUG) {
  console.warn(...);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions