Skip to main content
Module

x/fathym_atomic/tests/test.deps.ts>assertInstanceOf

This is the core atomic library to build design libraries from.
Go to Latest
function assertInstanceOf
import { assertInstanceOf } from "https://deno.land/x/fathym_atomic@v0.0.150/tests/test.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>