Files
oxc-project__oxc/napi/parser/src-js/generated/visit/walk.d.ts
overlookmotel 92cfb14aa4 fix(linter/plugins): fix types for walkProgram and walkProgramWithCfg (#20081)
Fix a mistake in our (internal) types: `walkProgramWithCfg` was missing that elements can be `CfgVisitFn`.

Also refactor the types for `walkProgram`, importing the original `VisitFn` and `EnterExit` types from where they're defined.
2026-03-06 18:04:24 +00:00

11 lines
446 B
TypeScript

// Auto-generated code, DO NOT EDIT DIRECTLY!
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/estree_visit.rs`.
import type * as ESTree from "@oxc-project/types";
type VisitFn = (node: ESTree.Node) => void;
type EnterExit = { enter: VisitFn; exit: VisitFn };
type CompiledVisitors = (VisitFn | EnterExit | null)[];
export declare function walkProgram(program: ESTree.Program, visitors: CompiledVisitors): void;