Skip to content

Commit

Permalink
Omit undefined args in a DefaultMap's factory
Browse files Browse the repository at this point in the history
Both "key" and "index" arguments are never passed as undefined.
  • Loading branch information
xamgore authored Jun 10, 2020
1 parent df5b8a5 commit db02068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default-map.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class DefaultMap<K, V> implements Iterable<[K, V]> {
size: number;

// Constructor
constructor(factory: (key?: K, index?: number) => V);
constructor(factory: (key: K, index: number) => V);

// Methods
clear(): void;
Expand Down

0 comments on commit db02068

Please sign in to comment.