Files
oxc-project__oxc/apps/oxlint/src-js/generated/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
448 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 { Node, Program } from "./types.d.ts";
import type { VisitFn, EnterExit } from "../plugins/visitor.ts";
type CompiledVisitors = (VisitFn | EnterExit | null)[];
export declare function walkProgram(program: Program, visitors: CompiledVisitors): void;
export declare const ancestors: Node[];