Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tsafe/mod.ts>assert

🔩 The missing TypeScript utils
Go to Latest
function assert
import { assert } from "https://deno.land/x/tsafe@v1.6.5/mod.ts";

Type Parameters

_T extends true

Parameters

optional
condition: any
optional
msg: string

Returns

asserts condition