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

Function decodeUnknownExit

packages/effect/src/Schema.ts:1604–1609  ·  view source on GitHub ↗
(schema: S, options?: SchemaAST.ParseOptions)

Source from the content-addressed store, hash-verified

1602 * @since 4.0.0
1603 */
1604export function decodeUnknownExit<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) {
1605 const parser = SchemaParser.decodeUnknownExit(schema, options)
1606 return (input: unknown, options?: SchemaAST.ParseOptions): Exit_.Exit<S["Type"], SchemaError> => {
1607 return fromIssueExit(parser(input, options))
1608 }
1609}
1610/**
1611 * Decodes a typed input (the schema's `Encoded` type) against a schema
1612 * synchronously, returning an `Exit` that is either a `Success` with the decoded

Callers

nothing calls this directly

Calls 2

fromIssueExitFunction · 0.85
parserFunction · 0.70

Tested by

no test coverage detected