Type Alias: EntityStateView<T>

EntityStateView<T> = T & EntityStateColumns

View type for entities in the active version only.

This type combines your entity properties with Lix operational columns (file_id, timestamps, etc.) while preserving LixGenerated markers for database schema compatibility.

Use this type when defining database views that work with the current active version only.

Type Parameters

T

T

Example

// Define a view type for key-value entities
type KeyValueView = EntityStateView<KeyValue>;

// The resulting type includes both entity properties and operational columns
// { key: string, value: any, lixcol_file_id: LixGenerated<string>, ... }