⚙️How to import

Recommended way to import tsafe

Node / Browser

import { assert, type Equals, typeGuard } from "tsafe";
// NOTE: You can also cherry pick imports, example: 
// import { assert, is, type Equals } from "tsafe/assert";
// import { typeGuard } from "tsafe/typeGuard";

Deno

/deps.ts

export { assert, type Equals } from "https://deno.land/x/tsafe@v0.7.3/mod.ts";
import { assert, type Equals } from "./deps.ts";

Last updated