Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve input validations #6

Open
andykswong opened this issue Apr 18, 2021 · 0 comments
Open

Improve input validations #6

andykswong opened this issue Apr 18, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@andykswong
Copy link
Owner

andykswong commented Apr 18, 2021

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(...);
}
@andykswong andykswong added the enhancement New feature or request label Apr 18, 2021
@andykswong andykswong changed the title Improve assertions Improve input validations Apr 18, 2021
@andykswong andykswong changed the title Improve input validations [Device] Improve input validations Jun 25, 2021
@andykswong andykswong changed the title [Device] Improve input validations Improve input validations Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant