This release is 1 version behind 0.3.3 — the latest version of @coven/predicates. Jump to latest
@coven/predicates@0.3.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
🕵️♀️ Predicate utilities.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
2 months ago (0.3.2)
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>;