File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
packages/toolkit/src/entities Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -166,20 +166,22 @@ export type EntitySelectors<
166
166
Id extends EntityId ,
167
167
Single extends string = '' ,
168
168
Plural extends string = DefaultPlural < Single > ,
169
- > = {
170
- [ K in `select${Capitalize < Single > } Ids`] : ( state : V ) => Id [ ]
171
- } & {
172
- [ K in `select${Capitalize < Single > } Entities`] : ( state : V ) => Record < Id , T >
173
- } & {
174
- [ K in `selectAll${Capitalize < Plural > } `] : ( state : V ) => T [ ]
175
- } & {
176
- [ K in `selectTotal${Capitalize < Plural > } `] : ( state : V ) => number
177
- } & {
178
- [ K in `select${Capitalize < Single > } ById`] : (
179
- state : V ,
180
- id : Id ,
181
- ) => Compute < UncheckedIndexedAccess < T > >
182
- }
169
+ > = Compute <
170
+ {
171
+ [ K in `select${Capitalize < Single > } Ids`] : ( state : V ) => Id [ ]
172
+ } & {
173
+ [ K in `select${Capitalize < Single > } Entities`] : ( state : V ) => Record < Id , T >
174
+ } & {
175
+ [ K in `selectAll${Capitalize < Plural > } `] : ( state : V ) => T [ ]
176
+ } & {
177
+ [ K in `selectTotal${Capitalize < Plural > } `] : ( state : V ) => number
178
+ } & {
179
+ [ K in `select${Capitalize < Single > } ById`] : (
180
+ state : V ,
181
+ id : Id ,
182
+ ) => Compute < UncheckedIndexedAccess < T > >
183
+ }
184
+ >
183
185
184
186
export type DefaultPlural < Single extends string > = Single extends ''
185
187
? ''
You can’t perform that action at this time.
0 commit comments