| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,12 +22,15 @@ declare var console: Console; | |||
| 22 | 22 | declare var require: NodeRequire; | |
| 23 | 23 | ||
| 24 | 24 | // Extend NodeRequire with the webpack's require context extension. | |
| 25 | + interface RequireContext { | ||
| 26 | + keys(): string[]; | ||
| 27 | + (id: string): any; | ||
| 28 | + <T>(id: string): T; | ||
| 29 | + resolve(id: string): string; | ||
| 30 | + } | ||
| 31 | + | ||
| 25 | 32 | interface NodeRequire { | |
| 26 | - context(root: string, recursive: boolean, filter: RegExp): { | ||
| 27 | - (module: string): any; | ||
| 28 | - id: number; | ||
| 29 | - keys(): string[]; | ||
| 30 | - } | ||
| 33 | + context(path: string, deep?: boolean, filter?: RegExp): RequireContext; | ||
| 31 | 34 | } | |
| 32 | 35 | ||
| 33 | 36 | declare var __dirname: string; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments