diff --git a/lib/runtime.d.ts b/lib/runtime.d.ts index 89df44c..3116709 100644 --- a/lib/runtime.d.ts +++ b/lib/runtime.d.ts @@ -10,6 +10,11 @@ interface WebpackRequire { (id: string): any; (paths: string[], callback: (...modules: any[]) => void): void; ensure(ids: string[], callback: WebpackRequireEnsureCallback, chunkName?: string): void; + context(directory: string, useSubDirectories?: boolean, regExp?: RegExp): WebpackContext; +} + +interface WebpackContext extends WebpackRequire { + keys(): string[]; } declare var require: WebpackRequire;