mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): conflicting node global types (#9197)
This commit is contained in:
11
packages/core/global-types.d.ts
vendored
11
packages/core/global-types.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user