File tree Expand file tree Collapse file tree
apps/oxlint/src-js/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ import {
9292} from "./selector.ts" ;
9393import { debugAssert , debugAssertIsNonNull } from "../utils/asserts.ts" ;
9494
95- import type { Node , Visitor } from "./types.ts" ;
95+ import type { Node } from "./types.ts" ;
96+ import type { VisitorObject } from "../generated/visitor.d.ts" ;
9697
9798// Visit function for a specific AST node type.
9899export type VisitFn = ( node : Node ) => void ;
@@ -252,7 +253,7 @@ export function initCompiledVisitor(): void {
252253 *
253254 * @param visitor - Visitor object
254255 */
255- export function addVisitorToCompiled ( visitor : Visitor ) : void {
256+ export function addVisitorToCompiled ( visitor : VisitorObject ) : void {
256257 if ( visitor === null || typeof visitor !== "object" ) {
257258 throw new TypeError ( "Visitor returned from `create` method must be an object" ) ;
258259 }
You can’t perform that action at this time.
0 commit comments