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