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

Function encodeUnknownPromise

packages/effect/src/SchemaParser.ts:692–696  ·  view source on GitHub ↗
(
  schema: S,
  options?: SchemaAST.ParseOptions
)

Source from the content-addressed store, hash-verified

690 * @since 3.10.0
691 */
692export const encodeUnknownPromise = <S extends Schema.ConstraintEncoder<unknown>>(
693 schema: S,
694 options?: SchemaAST.ParseOptions
695): (input: unknown, options?: SchemaAST.ParseOptions) => Promise<S["Encoded"]> =>
696 asPromise(encodeUnknownEffect(schema, options))
697
698/**
699 * Creates a Promise-based encoder for input already typed as the schema's decoded

Callers

nothing calls this directly

Calls 2

asPromiseFunction · 0.85
encodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected