fix(core): conflicting node global types (#9197)

This commit is contained in:
Nathan Walker
2021-02-07 11:26:43 -08:00
committed by GitHub
parent b688994f98
commit de7006b04d

View File

@@ -151,13 +151,6 @@ interface ModuleContext {
path: string;
}
// Define a minimal subset of NodeRequire and NodeModule so user apps can compile without
// installing @types/node
interface NodeRequire {
(id: string): any;
}
interface NodeModule {
exports: any;
id: string;
@@ -220,10 +213,6 @@ interface RequireContext {
resolve(id: string): string;
}
interface NodeRequire {
context(path: string, deep?: boolean, filter?: RegExp): RequireContext;
}
declare var __dirname: string;
declare var __filename: string;