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

Function decodeUnknownResult

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

Source from the content-addressed store, hash-verified

454 * @since 4.0.0
455 */
456export function decodeUnknownResult<S extends Schema.ConstraintDecoder<unknown>>(
457 schema: S,
458 options?: SchemaAST.ParseOptions
459): (input: unknown, options?: SchemaAST.ParseOptions) => Result.Result<S["Type"], SchemaIssue.Issue> {
460 return asResult(decodeUnknownEffect(schema, options))
461}
462
463/**
464 * 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