MCPcopy Create free account
hub / github.com/Effect-TS/effect / instanceOf

Function instanceOf

packages/effect/src/internal/matcher.ts:519–521  ·  view source on GitHub ↗
(
  constructor: A
)

Source from the content-addressed store, hash-verified

517
518/** @internal */
519export const instanceOf = <A extends abstract new(...args: any) => any>(
520 constructor: A
521): SafeRefinement<InstanceType<A>, never> => ((u: unknown) => u instanceof constructor) as any
522
523/** @internal */
524export const orElse =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected