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

x/typeguardkit/mod.ts>UnionAsserter#assert

A TypeScript module to help construct type assertion functions and type guards.
Latest
method UnionAsserter.prototype.assert
Re-export
import { UnionAsserter } from "https://deno.land/x/typeguardkit@0.33.0/mod.ts";

Parameters

value: unknown
optional
valueName: string

Returns

Asserted<Asserters[number]>