Module

x/discordeno/tests/deps.ts>assertInstanceOf

Discord API library for Deno
Latest
function assertInstanceOf
import { assertInstanceOf } from "https://dotland.deno.dev/x/discordeno@18.0.1/tests/deps.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>