webpack-env require.ensure typing update (#24951)

* webpack-env require.ensure typing update

* webpack-env require.ensure typing fix
This commit is contained in:
alexander-wu
2018-04-12 12:13:29 -07:00
committed by Mohamed Hegazy
parent c98aed3330
commit a0ab3e1a8a
+1 -1
View File
@@ -31,7 +31,7 @@ declare namespace __WebpackModuleApi {
*
* This creates a chunk. The chunk can be named. If a chunk with this name already exists, the dependencies are merged into that chunk and that chunk is used.
*/
ensure(paths: string[], callback: (require: NodeRequire) => void, chunkName?: string): void;
ensure(paths: string[], callback: (require: NodeRequire) => void, errorCallback?: (error: any) => void, chunkName?: string): void;
context(path: string, deep?: boolean, filter?: RegExp): RequireContext;
/**
* Returns the module id of a dependency. The call is sync. No request to the server is fired. The compiler ensures that the dependency is available.