Skip to content

Add invariants in the codebase #3

@thomasdashney

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

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