From 6a794f3c0616b48dd2cdfd7c18eb3a42bec4f68d Mon Sep 17 00:00:00 2001 From: T Allen Studios Date: Mon, 16 Dec 2019 04:16:38 -0800 Subject: [PATCH] Multimap modified values and keys types (#41024) * added multimap type * removed added dependency to package.json * added newline back to bottom of package.json * addressing linter errors * addressing linter errors * addressing linter errors * replaced new-able const with class declaration * Multimap class now implements Multimap interface * declaration file changes * Modified keys type * updated values type --- types/multimap/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/multimap/index.d.ts b/types/multimap/index.d.ts index b1287d5b90..623cfac841 100644 --- a/types/multimap/index.d.ts +++ b/types/multimap/index.d.ts @@ -51,7 +51,7 @@ declare class Multimap { /** * @return all the keys in the map */ - keys(): { next: () => { value: any, done: boolean } }; + keys(): { [Symbol.iterator](): any, next: () => { value: any, done: boolean } }; /** * @param key @@ -62,7 +62,7 @@ declare class Multimap { /** * @return all the values in the map */ - values(): { next: () => { value: any, done: boolean } }; + values(): { [Symbol.iterator](): any, next: () => { value: any, done: boolean } }; } export = Multimap;