mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Separate WeakMap to its own d.ts file.
Exclude in es6-shim compiles (Angular) to avoid name clashes.
This commit is contained in:
12
declarations.d.ts
vendored
12
declarations.d.ts
vendored
@@ -98,18 +98,6 @@ interface Console {
|
|||||||
dir(obj: any): void;
|
dir(obj: any): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WeakMap<K, V> {
|
|
||||||
clear(): void;
|
|
||||||
delete(key: K): boolean;
|
|
||||||
get(key: K): V;
|
|
||||||
has(key: K): boolean;
|
|
||||||
set(key: K, value: V): WeakMap<K, V>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare var WeakMap: {
|
|
||||||
new <K, V>(): WeakMap<K, V>;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare var console: Console;
|
declare var console: Console;
|
||||||
declare var global;
|
declare var global;
|
||||||
declare var require;
|
declare var require;
|
||||||
|
|||||||
13
weakmap.d.ts
vendored
Normal file
13
weakmap.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
/* tslint:disable:no-unused-variable */
|
||||||
|
|
||||||
|
interface WeakMap<K, V> {
|
||||||
|
clear(): void;
|
||||||
|
delete(key: K): boolean;
|
||||||
|
get(key: K): V;
|
||||||
|
has(key: K): boolean;
|
||||||
|
set(key: K, value: V): WeakMap<K, V>;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare var WeakMap: {
|
||||||
|
new <K, V>(): WeakMap<K, V>;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user