Skip to main content
Module

x/typestruct/dev_deps.ts>assertNotInstanceOf

Composable and checkable JavaScript (and TypeScript) data structure
Latest
function assertNotInstanceOf
import { assertNotInstanceOf } from "https://deno.land/x/typestruct@1.0.0-beta.5/dev_deps.ts";

Make an assertion that obj is not an instance of type. If so, then throw.

Parameters

actual: A
unexpectedType: new (...args: any[]) => T
optional
msg = [UNSUPPORTED]

Returns

asserts actual is Exclude<A, T>