From a321fc14bc6b514b882271271db8bbe07d6c3953 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Sat, 6 Jan 2024 17:44:57 +0200 Subject: [PATCH] fix: wrong signature of Map.forEach --- src/assets/js/lib.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/lib.d.ts b/src/assets/js/lib.d.ts index 1cc226b..07b8254 100644 --- a/src/assets/js/lib.d.ts +++ b/src/assets/js/lib.d.ts @@ -566,7 +566,7 @@ declare class Map { public get size(): number; - public forEach(func: (key: KeyT, val: ValueT, map: Map) => void, thisArg?: any): void; + public forEach(func: (val: ValueT, key: KeyT, map: Map) => void, thisArg?: any): void; public constructor(); } @@ -585,7 +585,7 @@ declare class Set { public get size(): number; - public forEach(func: (key: T, set: Set) => void, thisArg?: any): void; + public forEach(func: (key: T, value: T, set: Set) => void, thisArg?: any): void; public constructor(); }