EntityAdapterOptions<T, Id extends EntityId>
interfaceHow an adapter identifies and orders its entities.
Type parameters
| Name | Type | Description |
|---|---|---|
T | — | |
Id | extends EntityId |
Properties
| Name | Type | Description |
|---|---|---|
selectId? | (entity: T) => Id | Defaults to reading id. |
sortComparer? | (a: T, b: T) => number | Keeps ids sorted. |