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

Function OptionFromUndefinedOr

packages/effect/src/Schema.ts:16135–16140  ·  view source on GitHub ↗
(schema: S)

Source from the content-addressed store, hash-verified

16133 * @since 3.10.0
16134 */
16135export function OptionFromUndefinedOr<S extends Constraint>(schema: S): OptionFromUndefinedOr<S> {
16136 return UndefinedOr(schema).pipe(decodeTo(
16137 Option(toType(schema)),
16138 SchemaTransformation.optionFromUndefinedOr()
16139 ))
16140}
16141/**
16142 * Type-level representation returned by {@link OptionFromNullishOr}.
16143 *

Callers

nothing calls this directly

Calls 5

UndefinedOrInterface · 0.85
decodeToFunction · 0.70
OptionFunction · 0.70
toTypeInterface · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected