Skip to content

Commit

Permalink
add missing createEntityAdapter overload
Browse files Browse the repository at this point in the history
  • Loading branch information
ben.durrant committed Oct 2, 2023
1 parent b43f501 commit 0888fde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/toolkit/src/entities/create_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ export interface BuildCreateEntityAdapterConfiguration

export type CreateEntityAdapter = {
<T, Id extends EntityId>(options?: {
selectId?: IdSelector<T, Id>
selectId: IdSelector<T, Id>
sortComparer?: false | Comparer<T>
}): EntityAdapter<T, Id>
<T extends { id: EntityId }>(options?: {
sortComparer?: false | Comparer<T>
}): EntityAdapter<T, T['id']>
}

export function buildCreateEntityAdapter(
Expand Down

0 comments on commit 0888fde

Please sign in to comment.