Skip to main content
Go to Latest
function asserts.assertNotInstanceOf
import { asserts } from "https://deno.land/x/ponder@v0.0.4.0/deps.ts";
const { assertNotInstanceOf } = asserts;

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

Parameters

actual: A
unexpectedType: new (...args: any[]) => T
optional
msg = [UNSUPPORTED]

Returns

asserts actual is Exclude<A, T>