API Reference / @evolu/common / Object

Object

Type Aliases

Type AliasDescription
ReadonlyRecordA read-only Record<K, V> with K extends keyof any to preserve branded key types (e.g., in mapObject).

Functions

FunctionDescription
excludePropConditionally excludes a property from an object.
isPlainObjectChecks if a value is a plain object (e.g., created with {} or Object).
mapObjectMaps a ReadonlyRecord<K, V> to a new ReadonlyRecord<K, U>, preserving branded key types (e.g., type Id = 'id' & string) lost by Object.entries. Uses K extends string for precision.
objectToEntriesConverts a record to entries, preserving branded string key types (e.g., type Id = 'id' & string) via StringKeyOf<T>, unlike Object.entries which widens keys to string.

Was this page helpful?