Skip to main content

Type Alias: StatusIdentifier<T>

StatusIdentifier<T> = Tagged<CamelCase<T>, "status-identifier">

Defined in: src/utils/status.ts:38

Strongly typed identifier derived from a status label.

Type Parametersโ€‹

Tโ€‹

T extends string = string

Remarksโ€‹

Uses CamelCase to transform arbitrary status strings into a predictable camelCase token, then brands the resulting string so it cannot be confused with plain text identifiers. This is useful when generating DOM ids or analytics keys that need to reference a specific status consistently.