lib Fix Part 1/6 – WeakMap constructor (#50449)

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
形素叢集・ぐらふぃーむ
2023-03-01 06:14:30 +08:00
committed by GitHub
parent 0e357f510b
commit 57394450db
5 changed files with 30 additions and 17 deletions

View File

@@ -64,7 +64,7 @@ interface WeakMap<K extends object, V> {
}
interface WeakMapConstructor {
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
new <K extends object = object, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;