MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertSome

Function assertSome

packages/effect/test/util.ts:124–130  ·  view source on GitHub ↗
(
  option: Option.Option<A>,
  expected: A,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

122}
123
124export function assertSome<A>(
125 option: Option.Option<A>,
126 expected: A,
127 ..._: Array<never>
128): asserts option is Option.Some<A> {
129 deepStrictEqual(option, Option.some(expected))
130}
131
132// ----------------------------
133// Either

Callers

nothing calls this directly

Calls 1

deepStrictEqualFunction · 0.70

Tested by

no test coverage detected