tsafe
GitHub
  • 👋What is tsafe?
  • ⚙️How to import
  • assert
  • Equals
  • id
  • is
  • objectKeys
  • exclude
  • isAmong
  • symToStr
  • ReturnType
  • Parameters
  • Param0
  • typeGuard
  • capitalize/uncapitalize
  • MethodNames
  • isPromiseLike
  • flip
  • objectEntries
  • objectFromEntries
  • UnionToIntersection
  • 🚧withDefaults
  • 📉UnpackPromise
Powered by GitBook
On this page
  • Node / Browser
  • Deno

Was this helpful?

Edit on GitHub

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";
PreviousWhat is tsafe?Nextassert

Last updated 6 months ago

Was this helpful?

⚙️