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<
166166 Id extends EntityId ,
167167 Single extends string = '' ,
168168 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+ >
183185
184186export type DefaultPlural < Single extends string > = Single extends ''
185187 ? ''
You can’t perform that action at this time.
0 commit comments