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

Function decodeUnknownExit

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

Source from the content-addressed store, hash-verified

1620 * @since 4.0.0
1621 */
1622export function decodeUnknownExit<S extends ConstraintDecoder<unknown>>(schema: S, options?: SchemaAST.ParseOptions) {
1623 const parser = SchemaParser.decodeUnknownExit(schema, options)
1624 return (input: unknown, options?: SchemaAST.ParseOptions): Exit_.Exit<S["Type"], SchemaError> => {
1625 return fromIssueExit(parser(input, options))
1626 }
1627}
1628
1629function fromIssueExit<A>(exit: Exit_.Exit<A, SchemaIssue.Issue>): Exit_.Exit<A, SchemaError> {
1630 return Exit_.isSuccess(exit)

Callers

nothing calls this directly

Calls 1

fromIssueExitFunction · 0.85

Tested by

no test coverage detected