githubEdit

Equals

Let you test if two types are the same

Type level testing

Playgroundarrow-up-right

A less trivial example: The codearrow-up-right and it's corresponding test filearrow-up-right.

circle-info

If you are writing tests for your type, you definitely want to checkout //@ts-expect-errorarrow-up-right

Making sure that a zod schema validates a given type

Playgroundarrow-up-right

Making sure all cases of a switch are dealt with

Playgroundarrow-up-right

Last updated

Was this helpful?