mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #32576 from luuksommers/Add_Webpack_Require_Context_Mode_Argument
webpack-env: Add missing optional mode argument in require.context
This commit is contained in:
2
types/webpack-env/index.d.ts
vendored
2
types/webpack-env/index.d.ts
vendored
@@ -32,7 +32,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, errorCallback?: (error: any) => void, chunkName?: string): void;
|
||||
context(path: string, deep?: boolean, filter?: RegExp): RequireContext;
|
||||
context(path: string, deep?: boolean, filter?: RegExp, mode?: "sync" | "eager" | "weak" | "lazy" | "lazy-once"): 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user