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

Function encodeUnknownSync

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

Source from the content-addressed store, hash-verified

867 * @since 3.10.0
868 */
869export function encodeUnknownSync<S extends Schema.ConstraintEncoder<unknown>>(
870 schema: S,
871 options?: SchemaAST.ParseOptions
872): (input: unknown, options?: SchemaAST.ParseOptions) => S["Encoded"] {
873 return asSync(encodeUnknownEffect(schema, options))
874}
875
876/**
877 * Creates a synchronous encoder for input already typed as the schema's decoded

Callers

nothing calls this directly

Calls 2

asSyncFunction · 0.85
encodeUnknownEffectFunction · 0.70

Tested by

no test coverage detected