githubEdit

👋What is tsafe?

Powerful TypeScript features like assertion functionsarrow-up-right or user-defined type guardsarrow-up-right are only useful if paired with utility functions.

TypeScript, however, only exports type helpers (e.g. Record, ReturnType, etc.).

This module provides «the missing builtins» such as the assert functionarrow-up-right and other utilities that cannot be just type helpers.

circle-info

tsafe is both an NPMarrow-up-right and a Denoarrow-up-right module. (Achieved with denoifyarrow-up-right)

Last updated

Was this helpful?