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

Function decodeUnknownPromise

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

Source from the content-addressed store, hash-verified

330 * @since 3.10.0
331 */
332export function decodeUnknownPromise<S extends Schema.ConstraintDecoder<unknown>>(
333 schema: S,
334 options?: SchemaAST.ParseOptions
335): (input: unknown, options?: SchemaAST.ParseOptions) => Promise<S["Type"]> {
336 return asPromise(decodeUnknownEffect(schema, options))
337}
338
339/**
340 * Creates a Promise-based decoder for input already typed as the schema's

Callers

nothing calls this directly

Calls 2

asPromiseFunction · 0.85
decodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected