Skip to content

API Type KeyOfId

github-actions[bot] edited this page Dec 4, 2026 · 1 revision

Type Alias: KeyOfId<Id>

type KeyOfId<Id> = Id extends `${string}.${infer Rest}` ? KeyOfId<Rest> : Uncapitalize<Id>;

Defined in: src/engine/core/data.ts:55

The row key defineComponent derives from an id, as a type (ADR 0682): the last dot-separated segment with its first letter lower-cased ("pirates.HudPlayer" → "hudPlayer").

Type Parameters

Id

Id extends string

Clone this wiki locally