MCPcopy
hub / github.com/Effect-TS/effect / either

Method either

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

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

(args: Brand.Unbranded<A>)

Source from the content-addressed store, hash-verified

103 * if the provided `A` is valid, `Left<BrandError>` otherwise.
104 */
105 either(args: Brand.Unbranded<A>): Either.Either<A, Brand.BrandErrors>
106 /**
107 * Attempts to refine the provided value of type `A`, returning `true` if
108 * the provided `A` is valid, `false` otherwise.

Callers 15

Options.test.tsFile · 0.80
RateLimiterTestSuiteFunction · 0.80
Queue.test.tsFile · 0.80
Brand.test.tsFile · 0.80
STM.test.tsFile · 0.80
foreign.test.tsFile · 0.80
tryPromise.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 5

RateLimiterTestSuiteFunction · 0.64
expectRightFunction · 0.64
expectLeftFunction · 0.64
expectRightFunction · 0.64
expectLeftFunction · 0.64