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

Function decodeUnknownResult

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

Source from the content-addressed store, hash-verified

484 * @since 4.0.0
485 */
486export function decodeUnknownResult<S extends Schema.ConstraintDecoder<unknown>>(
487 schema: S,
488 options?: SchemaAST.ParseOptions
489): (input: unknown, options?: SchemaAST.ParseOptions) => Result.Result<S["Type"], SchemaIssue.Issue> {
490 return asResult(decodeUnknownEffect(schema, options))
491}
492
493/**
494 * Creates a decoder for input already typed as the schema's `Encoded` type,

Callers

nothing calls this directly

Calls 2

asResultFunction · 0.85
decodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected