Skip to main content
This release is 1 version behind 0.3.3 — the latest version of @coven/predicates. Jump to latest

Built and signed on GitHub Actions

🕵️‍♀️ Predicate utilities.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (0.3.2)
Package root>IsInstanceOfFunction.ts
import type { Class } from "jsr:@coven/types@^0.3.2"; /** * Function that checks if a given `input` is an `instanceof` the given class. * * @template Expected Expected class type. */ export type IsInstanceOfFunction<Expected extends Class<never>> = ( input: unknown, ) => input is InstanceType<Expected>;