mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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:
parent
7d9e1f792e
commit
6a794f3c06
4
types/multimap/index.d.ts
vendored
4
types/multimap/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user