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

Function transformOptionalEffect

packages/effect/src/SchemaGetter.ts:811–818  ·  view source on GitHub ↗
(
  f: (
    input: Option.Option<E>,
    options: SchemaAST.ParseOptions
  ) => Effect.Effect<Option.Option<T>, SchemaIssue.Issue, R>
)

Source from the content-addressed store, hash-verified

809 * @since 4.0.0
810 */
811export function transformOptionalEffect<T, E, R = never>(
812 f: (
813 input: Option.Option<E>,
814 options: SchemaAST.ParseOptions
815 ) => Effect.Effect<Option.Option<T>, SchemaIssue.Issue, R>
816): Getter<T, E, R> {
817 return makeGetter({ _tag: "TransformOptionalEffect", transform: f })
818}
819
820/**
821 * Creates a getter that always returns `None`, effectively omitting the value from output.

Callers 4

composeOptionalEffectFunction · 0.85
failFunction · 0.85
requiredFunction · 0.85
withDefaultFunction · 0.85

Calls 1

makeGetterFunction · 0.85

Tested by

no test coverage detected