Skip to content

Commit

Permalink
fix: typing for 'selectById' property
Browse files Browse the repository at this point in the history
  • Loading branch information
mgred committed Jul 12, 2018
1 parent c3faa26 commit 00676ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/entity/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export type EntitySelectors<T, V> = {
selectEntities: (state: V) => Dictionary<T>;
selectAll: (state: V) => T[];
selectTotal: (state: V) => number;
selectById: (state: V) => T;
selectById: (id: string | number) => (state: V) => T;
};

export interface EntityAdapter<T> extends EntityStateAdapter<T> {
Expand Down

0 comments on commit 00676ba

Please sign in to comment.