Skip to main content
Module

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

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 assertInstanceOf
import { assertInstanceOf } from "https://deno.land/x/enzastdlib@v0.0.4/vendor/@deno-std-testing.ts";

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

Type Parameters

T extends AnyConstructor

Parameters

actual: unknown
expectedType: T
optional
msg = [UNSUPPORTED]

Returns

asserts actual is GetConstructorType<T>