Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 2b5176e

Browse files
committed
Merge pull request #51 from defaude/master
Adding definition for require.context.
2 parents f1691ee + 64a7ff7 commit 2b5176e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/runtime.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ interface WebpackRequire {
1010
(id: string): any;
1111
(paths: string[], callback: (...modules: any[]) => void): void;
1212
ensure(ids: string[], callback: WebpackRequireEnsureCallback, chunkName?: string): void;
13+
context(directory: string, useSubDirectories?: boolean, regExp?: RegExp): WebpackContext;
14+
}
15+
16+
interface WebpackContext extends WebpackRequire {
17+
keys(): string[];
1318
}
1419

1520
declare var require: WebpackRequire;

0 commit comments

Comments
 (0)