MCPcopy Create free account
hub / github.com/effect-app/libs / assertDefined

Function assertDefined

repos/effect/packages/vitest/src/utils.ts:221–228  ·  view source on GitHub ↗
(
  a: A | undefined,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

219}
220
221/**
222 * Asserts that `a` is not `undefined`.
223 *
224 * @category testing
225 * @since 4.0.0
226 */
227export function assertDefined<A>(
228 a: A | undefined,
229 ..._: Array<never>
230): asserts a is Exclude<A, undefined> {
231 if (a === undefined) {

Callers 1

Calls 1

failFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…