Skip to content

Documentation / @etherfold/processor-entities / EntityPrefixOf

Type Alias: EntityPrefixOf<E> ​

EntityPrefixOf<E> = IdPrefixes<IdColumnsOf<E>>

Defined in: packages/state-store/dist/declarations.d.ts:123

A listing prefix of a declared entity: a LEADING run of its id columns, at least one of them.

Under id: ['epoch', 'position', 'playerIndex'] this is {epoch} | {epoch, position} | {epoch, position, playerIndex} and nothing else, so the prefix rule prefixValues enforces at run time is enforced here at compile time as well. {position} does not compile, because it would need a scan rather than a range.

Type Parameters ​

E ​

E extends EntityDeclaration