File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import type { ParseError } from "./errors"
8
8
import type { HasLocation } from "./locations"
9
9
import type { Token } from "./tokens"
10
10
import type { TSESTree } from "@typescript-eslint/utils"
11
+ import type { ParserServices } from "../parser-services"
11
12
12
13
//------------------------------------------------------------------------------
13
14
// Common
@@ -70,7 +71,7 @@ export type ESLintNode =
70
71
*/
71
72
export interface ESLintExtendedProgram {
72
73
ast : ESLintProgram
73
- services ?: { }
74
+ services ?: ParserServices
74
75
visitorKeys ?: { [ type : string ] : string [ ] }
75
76
scopeManager ?: ScopeManager
76
77
}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export interface ParserServices {
83
83
| ( ( lang : string | null , customBlock : VElement ) => boolean )
84
84
create : CustomBlockVisitorFactory
85
85
} ,
86
- scriptVisitor : { [ key : string ] : ( ...args : any ) => void } ,
86
+ scriptVisitor ? : { [ key : string ] : ( ...args : any ) => void } ,
87
87
) : { [ key : string ] : ( ...args : any ) => void }
88
88
89
89
/**
@@ -262,7 +262,7 @@ export function define(
262
262
| ( ( lang : string | null , customBlock : VElement ) => boolean )
263
263
create : CustomBlockVisitorFactory
264
264
} ,
265
- scriptVisitor : { [ key : string ] : ( ...args : any ) => void } ,
265
+ scriptVisitor ? : { [ key : string ] : ( ...args : any ) => void } ,
266
266
) : { [ key : string ] : ( ...args : any ) => void } {
267
267
if ( scriptVisitor == null ) {
268
268
scriptVisitor = { } //eslint-disable-line no-param-reassign
You can’t perform that action at this time.
0 commit comments