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

Function encodeUnknownExit

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

Source from the content-addressed store, hash-verified

757 * @since 4.0.0
758 */
759export function encodeUnknownExit<S extends Schema.ConstraintEncoder<unknown>>(
760 schema: S,
761 options?: SchemaAST.ParseOptions
762): (input: unknown, options?: SchemaAST.ParseOptions) => Exit.Exit<S["Encoded"], SchemaIssue.Issue> {
763 return asExit(encodeUnknownEffect(schema, options))
764}
765
766/**
767 * 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