There is such thing as TypeScript tests (meaning, tests that validate the correctness of your TypeScript definitions). Here are some examples from Vue 3:

Also, check out this repo to learn some advanced TypeScript stuff:

Sign in to participate in the conversation
Noel's Mastodon

This is an instance-of-one managed by Noel De Martin.