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

Function encodeUnknownPromise

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

Source from the content-addressed store, hash-verified

654 * @since 3.10.0
655 */
656export const encodeUnknownPromise = <S extends Schema.ConstraintEncoder<unknown>>(
657 schema: S,
658 options?: SchemaAST.ParseOptions
659): (input: unknown, options?: SchemaAST.ParseOptions) => Promise<S["Encoded"]> =>
660 asPromise(encodeUnknownEffect(schema, options))
661
662/**
663 * 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