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

Function assertSuccess

packages/effect/test/Brand.test.ts:14–16  ·  view source on GitHub ↗
(ctor: Brand.Constructor<T>, value: Brand.Brand.Unbranded<T>)

Source from the content-addressed store, hash-verified

12import { Brand, Result, Schema } from "effect"
13
14function assertSuccess<T extends Brand.Brand<any>>(ctor: Brand.Constructor<T>, value: Brand.Brand.Unbranded<T>) {
15 vassertSuccess(ctor.result(value), value as T)
16}
17
18function assertFailure<T extends Brand.Brand<any>>(
19 ctor: Brand.Constructor<T>,

Callers 2

Result.test.tsFile · 0.90
Optic.test.tsFile · 0.90

Calls 1

resultMethod · 0.65

Tested by

no test coverage detected