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

Function decodeUnknownExit

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

Source from the content-addressed store, hash-verified

375 * @since 4.0.0
376 */
377export function decodeUnknownExit<S extends Schema.ConstraintDecoder<unknown>>(
378 schema: S,
379 options?: SchemaAST.ParseOptions
380): (input: unknown, options?: SchemaAST.ParseOptions) => Exit.Exit<S["Type"], SchemaIssue.Issue> {
381 return asExit(decodeUnknownEffect(schema, options))
382}
383
384/**
385 * Creates a synchronous decoder for input already typed as the schema's `Encoded`

Callers

nothing calls this directly

Calls 2

asExitFunction · 0.85
decodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected