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
This commit is contained in:
T Allen Studios 2019-12-16 04:16:38 -08:00 committed by Orta
parent 7d9e1f792e
commit 6a794f3c06

View File

@ -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;