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

Method makeOption

packages/effect/src/Schema.ts:238–238  ·  view source on GitHub ↗

* Constructs a value from the make input representation, returning `Option.none` * when validation fails. * * **When to use** * * Use when you only need to know whether construction succeeds * and do not need validation details. * * **Details** * * Applies constructor d

(input: this["~type.make.in"], options?: MakeOptions)

Source from the content-addressed store, hash-verified

236 * @see {@link BottomWithoutNew.makeEffect} — construct through `Effect` when validation details should stay in the error channel
237 */
238 makeOption(input: this["~type.make.in"], options?: MakeOptions): Option_.Option<this["Type"]>
239 /**
240 * Constructs a value from the make input representation, returning validation
241 * failures in the `Effect` error channel.

Callers 4

Schema.test.tsFile · 0.65
makeOptionMethod · 0.65
makeFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected