Skip to content

Commit

Permalink
fix(associative): update SortedMap.fromObject() - PropertyKey => string
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 7, 2019
1 parent 6137b48 commit 48688da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/associative/src/sorted-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export class SortedMap<K, V> extends Map<K, V> {
*/
static fromObject<T>(
obj: IObjectOf<T>,
opts?: Partial<SortedMapOpts<PropertyKey>>
): SortedMap<PropertyKey, T> {
const m = new SortedMap<PropertyKey, T>(null, {
opts?: Partial<SortedMapOpts<string>>
): SortedMap<string, T> {
const m = new SortedMap<string, T>(null, {
capacity: Object.keys(obj).length,
...opts
});
Expand Down

0 comments on commit 48688da

Please sign in to comment.