👋What is tsafe?

A collection of very simple utility function and type that enables developers to take full advantage of what TypeScript can offer.

Powerful features like assertion functions or user-defined type guards 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 function.

tsafe also corrects frustrating aspect of default utility type see ReturnType for example.

tsafe is both an NPM and a Deno module. (Achieved with denoify)

Last updated