fix: wrong signature of Map.forEach

This commit is contained in:
TopchetoEU 2024-01-06 17:44:57 +02:00
parent 07a6f18b16
commit a321fc14bc
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -566,7 +566,7 @@ declare class Map<KeyT, ValueT> {
public get size(): number; public get size(): number;
public forEach(func: (key: KeyT, val: ValueT, map: Map<KeyT, ValueT>) => void, thisArg?: any): void; public forEach(func: (val: ValueT, key: KeyT, map: Map<KeyT, ValueT>) => void, thisArg?: any): void;
public constructor(); public constructor();
} }
@ -585,7 +585,7 @@ declare class Set<T> {
public get size(): number; public get size(): number;
public forEach(func: (key: T, set: Set<T>) => void, thisArg?: any): void; public forEach(func: (key: T, value: T, set: Set<T>) => void, thisArg?: any): void;
public constructor(); public constructor();
} }