File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,20 @@ declare module "@webassemblyjs/ast" {
246
246
declare module "webpack-sources" {
247
247
export type MapOptions = { columns ?: boolean ; module ?: boolean } ;
248
248
249
+ export type RawSourceMap = {
250
+ version : number ;
251
+ sources : string [ ] ;
252
+ names : string [ ] ;
253
+ sourceRoot ?: string ;
254
+ sourcesContent ?: string [ ] ;
255
+ mappings : string ;
256
+ file : string ;
257
+ } ;
258
+
249
259
export abstract class Source {
250
260
size ( ) : number ;
251
261
252
- map ( options ?: MapOptions ) : Object ;
262
+ map ( options ?: MapOptions ) : RawSourceMap | null ;
253
263
254
264
sourceAndMap ( options ?: MapOptions ) : {
255
265
source : string | Buffer ;
Original file line number Diff line number Diff line change @@ -9358,6 +9358,15 @@ declare class RawSource extends Source {
9358
9358
constructor ( source : string | Buffer , convertToString ?: boolean ) ;
9359
9359
isBuffer ( ) : boolean ;
9360
9360
}
9361
+ declare interface RawSourceMap {
9362
+ version : number ;
9363
+ sources : string [ ] ;
9364
+ names : string [ ] ;
9365
+ sourceRoot ?: string ;
9366
+ sourcesContent ?: string [ ] ;
9367
+ mappings : string ;
9368
+ file : string ;
9369
+ }
9361
9370
declare class ReadFileCompileWasmPlugin {
9362
9371
constructor ( options ?: any ) ;
9363
9372
options : any ;
@@ -11104,7 +11113,7 @@ declare abstract class SortableSet<T> extends Set<T> {
11104
11113
declare class Source {
11105
11114
constructor ( ) ;
11106
11115
size ( ) : number ;
11107
- map ( options ?: MapOptions ) : Object ;
11116
+ map ( options ?: MapOptions ) : null | RawSourceMap ;
11108
11117
sourceAndMap ( options ?: MapOptions ) : { source : string | Buffer ; map : Object } ;
11109
11118
updateHash ( hash : Hash ) : void ;
11110
11119
source ( ) : string | Buffer ;
You can’t perform that action at this time.
0 commit comments