Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/deps.ts>asserts.assertNotInstanceOf

A file system based router for Deno.
Go to Latest
function asserts.assertNotInstanceOf
import { asserts } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { assertNotInstanceOf } = asserts;

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

Type Parameters

T extends AnyConstructor

Parameters

actual: unknown
unexpectedType: T
optional
msg = [UNSUPPORTED]