Skip to main content

LatestEvents Interface

Events from LatestRaw.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
export interface LatestEvents<T, TRemoteValueAccessor extends ValueAccessor<T> = ProxiedValueAccessor<T>>

Type Parameters

ParameterConstraintDefaultDescription
T
TRemoteValueAccessorValueAccessor<T>ProxiedValueAccessor<T>

Events

PropertyTypeDescription
localUpdated(update: { value: DeepReadonly<JsonSerializable<T>>; }) => voidRaised when local client's value is updated, which may be the same value.
remoteUpdated(update: LatestClientData<T, TRemoteValueAccessor>) => voidRaised when remote client's value is updated, which may be the same value.

Event Details

localUpdated

Raised when local client's value is updated, which may be the same value.

Signature

localUpdated: (update: {
value: DeepReadonly<JsonSerializable<T>>;
}) => void;

Type: (update: { value: DeepReadonly<JsonSerializable<T>>; }) => void

remoteUpdated

Raised when remote client's value is updated, which may be the same value.

Signature

remoteUpdated: (update: LatestClientData<T, TRemoteValueAccessor>) => void;

Type: (update: LatestClientData<T, TRemoteValueAccessor>) => void