1.3.8
Exposes the EntityKey
generic type.
Allows you to extract the value typer of the entity key:
interface Obj {
id: number
}
const Type = EntityKey<Entity<Obj, 'id'>>
// Type is now of the "string" type.
Exposes the EntityKey
generic type.
Allows you to extract the value typer of the entity key:
interface Obj {
id: number
}
const Type = EntityKey<Entity<Obj, 'id'>>
// Type is now of the "string" type.