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

Function flipChecks

packages/effect/src/SchemaAST.ts:721–727  ·  view source on GitHub ↗
(ast: A)

Source from the content-addressed store, hash-verified

719}
720
721function flipChecks<A extends Declaration | Arrays | Objects | Union>(ast: A): A {
722 return ast.checks === ast.encodingChecks ? ast : copy(ast, {
723 checks: ast.encodingChecks,
724 encodingChecks: ast.checks,
725 encoding: undefined
726 })
727}
728
729type DeclarationRun = (
730 typeParameters: ReadonlyArray<AST>

Callers 1

flipMethod · 0.85

Calls 1

copyFunction · 0.70

Tested by

no test coverage detected