Skip to content

Add invariants in the codebase #3

Description

@thomasdashney

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

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions