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

Function decodeUnknownSync

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

Source from the content-addressed store, hash-verified

522 * @since 3.10.0
523 */
524export function decodeUnknownSync<S extends Schema.ConstraintDecoder<unknown>>(
525 schema: S,
526 options?: SchemaAST.ParseOptions
527): (input: unknown, options?: SchemaAST.ParseOptions) => S["Type"] {
528 return asSync(decodeUnknownEffect(schema, options))
529}
530
531/**
532 * Creates a synchronous decoder for input already typed as the schema's `Encoded`

Callers

nothing calls this directly

Calls 2

asSyncFunction · 0.85
decodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected