API reference@evolu/commonObject › emptyRecord

const emptyRecord: Readonly<Record<string, never>>;

Defined in: packages/common/src/Object.ts:370

A shared frozen empty readonly Record.

Use it as an immutable empty value for defaults and placeholders instead of allocating a new empty object. Because the instance is shared, it is frozen to prevent accidental mutation.

Use createMutableRecord to build a Record locally through mutation instead of repeated object spreads.