mmkal

mmkal/expect-type

Compile-time tests for types. Useful to make sure types don't regress into being overly-permissive as changes go in over time.

TypeScript
535
11
Other

This project provides compile-time type testing utilities, similar to Jest's `expect` but for TypeScript types. It allows developers to write assertions about type structures that are checked at compile time, helping prevent type regressions when code changes. The library exports `expectTypeOf` which can be used to verify function signatures, object shapes, generics, and more, with intuitive methods like `.toEqualTypeOf()`, `.toBeString()`, `.parameters`, and `.returns`. It's particularly useful for library authors who want to ensure their public APIs maintain correct type contracts over time.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

mmkal's profile
mmkal
95 contributions
aryaemami59's profile
aryaemami59
19 contributions
renovate[bot]'s profile
renovate[bot]
15 contributions
github-actions[bot]'s profile
github-actions[bot]
10 contributions
trevorade's profile
trevorade
6 contributions
charpeni's profile
charpeni
4 contributions
SerkanSipahi's profile
SerkanSipahi
1 contributions
mrazauskas's profile
mrazauskas
1 contributions
sapphi-red's profile
sapphi-red
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet