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

Add invariants in the codebase #3

Open
thomasdashney opened this issue Mar 1, 2020 · 0 comments
Open

Add invariants in the codebase #3

thomasdashney opened this issue Mar 1, 2020 · 0 comments
Milestone

Comments

@thomasdashney
Copy link
Contributor

Non-typescript users should see better errors if they pass invalid arguments to public methods. We should using invariant to assert the type of incoming inputs and provide descriptive errors if they're incorrect.

  • Make use of ts-invariant
  • Any public APIs (api.request, useApiQuery, etc.) should validate parameters using invariant
@thomasdashney thomasdashney added this to the v1.0.0 beta milestone Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant