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

Function assertInstanceOf

packages/vitest/src/utils.ts:102–109  ·  view source on GitHub ↗
(
  value: unknown,
  constructor: C,
  message?: string,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

100 * @since 4.0.0
101 */
102export function assertInstanceOf<C extends abstract new(...args: any) => any>(
103 value: unknown,
104 constructor: C,
105 message?: string,
106 ..._: Array<never>
107): asserts value is InstanceType<C> {
108 vassert.instanceOf(value, constructor as any, message)
109}
110
111/**
112 * Asserts that `self` is `true`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected