Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
function asserts.assertNotInstanceOf
import { asserts } from "https://deno.land/x/ponder@v0.1.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>