Skip to content

Commit

Permalink
api
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Apr 9, 2021
1 parent e6753ed commit 3f094d3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions etc/redux-toolkit.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,17 @@ export interface EntityAdapter<T> extends EntityStateAdapter<T> {
export type EntityId = number | string;

// @public (undocumented)
export interface EntitySelectors<T, V> {
export interface EntitySelectors<T, V, ExtraArgs extends any[] = []> {
// (undocumented)
selectAll: (state: V) => T[];
selectAll: (state: V, ...args: ExtraArgs) => T[];
// (undocumented)
selectById: (state: V, id: EntityId) => T | undefined;
selectById: (state: V, id: EntityId, ...args: ExtraArgs) => T | undefined;
// (undocumented)
selectEntities: (state: V) => Dictionary<T>;
selectEntities: (state: V, ...args: ExtraArgs) => Dictionary<T>;
// (undocumented)
selectIds: (state: V) => EntityId[];
selectIds: (state: V, ...args: ExtraArgs) => EntityId[];
// (undocumented)
selectTotal: (state: V) => number;
selectTotal: (state: V, ...args: ExtraArgs) => number;
}

// @public (undocumented)
Expand Down

0 comments on commit 3f094d3

Please sign in to comment.