Skip to main content
Module

x/deno_slack_api/dev_deps.ts>assertInstanceOf

Slack API Client for Deno Run on Slack projects
Go to Latest
function assertInstanceOf
import { assertInstanceOf } from "https://deno.land/x/deno_slack_api@2.7.1/dev_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>