Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/redis/vendor/https/deno.land/std/testing/asserts.ts>assertInstanceOf

πŸ¦• Redis client for Deno πŸ•
Very Popular
Go to Latest
function assertInstanceOf
import { assertInstanceOf } from "https://deno.land/x/redis@v0.27.0/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>