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

Method option

packages/effect/src/Brand.ts:100–100  ·  view source on GitHub ↗

* Constructs a branded type from a value of type `A`, returning `Some ` * if the provided `A` is valid, `None` otherwise.

(args: Brand.Unbranded<A>)

Source from the content-addressed store, hash-verified

98 * if the provided `A` is valid, `None` otherwise.
99 */
100 option(args: Brand.Unbranded<A>): Option.Option<A>
101 /**
102 * Constructs a branded type from a value of type `A`, returning `Right<A>`
103 * if the provided `A` is valid, `Left<BrandError>` otherwise.

Callers 5

Config.test.tsFile · 0.80
Brand.test.tsFile · 0.80
STM.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected