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

Function decodeUnknownPromise

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

Source from the content-addressed store, hash-verified

304 * @since 3.10.0
305 */
306export function decodeUnknownPromise<S extends Schema.ConstraintDecoder<unknown>>(
307 schema: S,
308 options?: SchemaAST.ParseOptions
309): (input: unknown, options?: SchemaAST.ParseOptions) => Promise<S["Type"]> {
310 return asPromise(decodeUnknownEffect(schema, options))
311}
312
313/**
314 * 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