File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -77,17 +77,26 @@ interface WebpackModule {
7777 } ;
7878}
7979
80+ interface WebpackRequireEnsureCallback {
81+ ( req : WebpackRequire ) : void
82+ }
83+
8084interface WebpackRequire {
81- context ( file : string , flag ?: boolean , exp ?: RegExp ) : any ;
85+ ( id : string ) : any ;
86+ ( paths : string [ ] , callback : ( ...modules : any [ ] ) => void ) : void ;
87+ ensure ( ids : string [ ] , callback : WebpackRequireEnsureCallback , chunkName ?: string ) : void ;
88+ context ( directory : string , useSubDirectories ?: boolean , regExp ?: RegExp ) : WebpackContext ;
8289}
8390
91+ interface WebpackContext extends WebpackRequire {
92+ keys ( ) : string [ ] ;
93+ }
8494
8595interface ErrorStackTraceLimit {
8696 stackTraceLimit : number ;
8797}
8898
8999
90-
91100// Extend typings
92101interface NodeRequire extends WebpackRequire { }
93102interface ErrorConstructor extends ErrorStackTraceLimit { }
You can’t perform that action at this time.
0 commit comments