Extremely Popular
Latest
function assertInstanceOf
import { assertInstanceOf } from "https://dotland.deno.dev/x/dejs@0.10.3/vendor/https/deno.land/std/testing/asserts.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>