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

Function encodeUnknownExit

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

Source from the content-addressed store, hash-verified

719 * @since 4.0.0
720 */
721export function encodeUnknownExit<S extends Schema.ConstraintEncoder<unknown>>(
722 schema: S,
723 options?: SchemaAST.ParseOptions
724): (input: unknown, options?: SchemaAST.ParseOptions) => Exit.Exit<S["Encoded"], SchemaIssue.Issue> {
725 return asExit(encodeUnknownEffect(schema, options))
726}
727
728/**
729 * Creates a synchronous encoder for input already typed as the schema's decoded

Callers

nothing calls this directly

Calls 2

asExitFunction · 0.85
encodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected