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

x/typeguardkit/core/assert_is.ts

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

Functions

assertIs wraps asserter with an assertion signature so value can be narrowed to Type. If asserter.assert throws an error, it will bubble up. Otherwise, assertIs will not return a value, but after calling it, value will be narrowed to Type.