x/oak/test_deps.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function assertInstanceOf
import { assertInstanceOf } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/test_deps.ts?s=assertInstanceOf";

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

Type Parameters

T extends AnyConstructor[src]

Parameters

actual: unknown[src]
expectedType: T[src]
optional
msg
[src]

Returns

asserts actual is GetConstructorType<T>[src]