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

x/typeguardkit/core/is.ts

A TypeScript module to help construct type assertion functions and type guards.
Go to Latest
import * as typeguardkit from "https://deno.land/x/typeguardkit@0.32.1/core/is.ts";

Functions

is wraps asserter with a predicate signature, creating a type guard, so that value can be narrowed to Type. If asserter.assert throws an error, is will catch it and return false. Otherwise, is will return true.