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

Function asExit

packages/effect/src/SchemaParser.ts:1017–1021  ·  view source on GitHub ↗
(
  parser: (input: E, options?: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, R>
)

Source from the content-addressed store, hash-verified

1015}
1016
1017function asExit<T, E, R>(
1018 parser: (input: E, options?: SchemaAST.ParseOptions) => Effect.Effect<T, SchemaIssue.Issue, R>
1019): (input: E, options?: SchemaAST.ParseOptions) => Exit.Exit<T, SchemaIssue.Issue> {
1020 return (input: E, options?: SchemaAST.ParseOptions) => Effect.runSyncExit(parser(input, options) as any)
1021}
1022
1023/** @internal */
1024export function asOption<T, E, R>(

Callers 5

makeIsFunction · 0.85
decodeUnknownExitFunction · 0.85
encodeUnknownExitFunction · 0.85
asOptionFunction · 0.85
asResultFunction · 0.85

Calls 1

parserFunction · 0.70

Tested by

no test coverage detected