Skip to content

Commit 0102cc3

Browse files
committed
fix Id usage
1 parent 07a9acf commit 0102cc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/entities/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export type EntitySelectors<
166166
IdType extends EntityId,
167167
Single extends string = '',
168168
Plural extends string = DefaultPlural<Single>,
169-
> = Compute<
169+
> = Id<
170170
{
171171
[K in `select${Capitalize<Single>}Ids`]: (state: V) => IdType[]
172172
} & {
@@ -181,7 +181,7 @@ export type EntitySelectors<
181181
[K in `select${Capitalize<Single>}ById`]: (
182182
state: V,
183183
id: IdType,
184-
) => Compute<UncheckedIndexedAccess<T>>
184+
) => Id<UncheckedIndexedAccess<T>>
185185
}
186186
>
187187

0 commit comments

Comments
 (0)