Skip to main content
Module

x/enzastdlib/vendor/@deno-std-testing.ts>assertNotInstanceOf

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function assertNotInstanceOf
import { assertNotInstanceOf } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@deno-std-testing.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: string

Returns

asserts actual is Exclude<A, T>