44
55export namespace Chrome {
66 export namespace DevTools {
7+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
78 export interface EventSink < ListenerT extends ( ...args : any ) => void > {
89 addListener ( listener : ListenerT ) : void ;
910 removeListener ( listener : ListenerT ) : void ;
@@ -43,7 +44,7 @@ export namespace Chrome {
4344 details : unknown [ ] ,
4445 isError : boolean ,
4546 isException : boolean ,
46- value : string
47+ value : string ,
4748 } ) => unknown ) : void ;
4849 getResources ( callback : ( resources : Resource [ ] ) => unknown ) : void ;
4950 reload ( reloadOptions ?: { ignoreCache ?: boolean , injectedScript ?: string , userAgent ?: string } ) : void ;
@@ -169,10 +170,13 @@ export namespace Chrome {
169170 export type RecorderExtensionPlugin = RecorderExtensionExportPlugin | RecorderExtensionReplayPlugin ;
170171
171172 export interface RecorderExtensionExportPlugin {
173+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
172174 stringify ( recording : Record < string , any > ) : Promise < string > ;
175+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
173176 stringifyStep ( step : Record < string , any > ) : Promise < string > ;
174177 }
175178 export interface RecorderExtensionReplayPlugin {
179+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
176180 replay ( recording : Record < string , any > ) : void ;
177181 }
178182
@@ -182,6 +186,7 @@ export namespace Chrome {
182186 export interface RemoteObject {
183187 type : RemoteObjectType ;
184188 className ?: string ;
189+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
185190 value ?: any ;
186191 description ?: string ;
187192 objectId ?: RemoteObjectId ;
@@ -244,9 +249,8 @@ export namespace Chrome {
244249 * Retrieve function name(s) for the function(s) containing the rawLocation. This returns more than one entry if
245250 * the location is inside of an inlined function with the innermost function at index 0.
246251 */
247- getFunctionInfo ( rawLocation : RawLocation ) :
248- Promise < { frames : Array < FunctionInfo > , missingSymbolFiles : Array < string > } | { missingSymbolFiles : Array < string > } |
249- { frames : Array < FunctionInfo > } > ;
252+ getFunctionInfo ( rawLocation : RawLocation ) : Promise < { frames : FunctionInfo [ ] , missingSymbolFiles : string [ ] } |
253+ { missingSymbolFiles : string [ ] } | { frames : FunctionInfo [ ] } > ;
250254
251255 /**
252256 * Find locations in raw modules corresponding to the inline function
@@ -284,9 +288,9 @@ export namespace Chrome {
284288 releaseObject ( objectId : RemoteObjectId ) : Promise < void > ;
285289 }
286290
287-
288291 export interface SupportedScriptTypes {
289292 language : string ;
293+ // eslint-disable-next-line @typescript-eslint/naming-convention
290294 symbol_types : string [ ] ;
291295 }
292296
0 commit comments