Optionalproperties: DataBlockProperties = {}ProtectedisProtected ReadonlychangeReadonlyonDelegate fired when the value changes at a certain key/index.
The default class of observers to instantiate.
The default class of observers to instantiate.
The block's values in an array (in the order implied by keys).
FunctiongenerateObserver
Optionalproperties: TurboObserverProperties<any, any, KeyType> = {}Options for observer creation.
ProtectedkeyProtected FunctionkeyChanged
The key that changed.
Optionalvalue: unknown = ...The new value (or undefined for deletions).
Optionaldeleted: boolean = falseWhether the key was removed.
Functionget
The key to retrieve.
The value associated with the key, or null if not found.
Functionset
The key to update.
The value to assign.
Functionadd
The value to insert.
Optionalkey: KeyTypeOptional numeric index to insert at. If omitted, the value is pushed.
Append or insert a value into an array-backed data block. If the block is not an array, the call forwards to set.
Protectedobserve
Optional initialization properties.