MCPcopy Create free account
hub / github.com/effect-app/libs / transformOrFail

Function transformOrFail

repos/effect/packages/effect/src/SchemaGetter.ts:538–542  ·  view source on GitHub ↗
(
  f: (e: E, options: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, R>
)

Source from the content-addressed store, hash-verified

536 * - On success, wraps the result in `Some`.
537 * - On failure, propagates the `Issue`.
538 *
539 * **Example** (Parsing with failure)
540 *
541 * ```ts import.meta.vitest
542 * import { Effect, Option, SchemaGetter, SchemaIssue } from "effect"
543 *
544 * const safeParseInt = SchemaGetter.transformOrFail<number, string>(
545 * (s, options) => {

Callers 8

decodeBase64Function · 0.70
decodeBase64StringFunction · 0.70
decodeBase64UrlFunction · 0.70
decodeBase64UrlStringFunction · 0.70
decodeHexFunction · 0.70
decodeHexStringFunction · 0.70
decodeUriComponentFunction · 0.70
dateTimeUtcFromInputFunction · 0.70

Calls 3

onSomeFunction · 0.70
pipeMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…