(ast: A)
| 719 | } |
| 720 | |
| 721 | function 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 | |
| 729 | type DeclarationRun = ( |
| 730 | typeParameters: ReadonlyArray<AST> |