La referencia de la API está disponible solo en inglés por ahora.

EntityAdapterOptions<T, Id extends EntityId>

interface
entity/entityAdapter.ts:52

How an adapter identifies and orders its entities.

Type parameters

NameTypeDescription
T
Idextends EntityId

Properties

NameTypeDescription
selectId?(entity: T) => IdDefaults to reading id.
sortComparer?(a: T, b: T) => numberKeeps ids sorted.