MCPcopy Index your code
hub / github.com/Effect-TS/effect / validateSync

Function validateSync

packages/effect/src/ParseResult.ts:611–614  ·  view source on GitHub ↗
(
  schema: Schema.Schema<A, I, R>,
  options?: AST.ParseOptions
)

Source from the content-addressed store, hash-verified

609 * @since 3.10.0
610 */
611export const validateSync = <A, I, R>(
612 schema: Schema.Schema<A, I, R>,
613 options?: AST.ParseOptions
614): (u: unknown, overrideOptions?: AST.ParseOptions) => A => getSync(AST.typeAST(schema.ast), true, options)
615
616/**
617 * @category validation

Callers

nothing calls this directly

Calls 1

getSyncFunction · 0.85

Tested by

no test coverage detected