Setup CRDT for any framework.
id
: string
: Unique identifier for the store.type
: 'array' | 'map' | 'text' | 'xml'
: Type of the store.initialValue
: T
: [Optional] Initial value for the store (e.g., []
for an empty array).veltClient
: Velt
: Instance of the Velt client for synchronization.Promise<Store<T> | null>
: A Promise resolving to a Store<T>
instance or null
if creation fails.T
: The current state of the data (e.g., an array, map, text, xml).newValue
: T
: The updated data to set.void
: void.callback
: (newValue: T) => void
: Function to call when the new value is emitted.() => void
: An unsubscribe function to stop listening.versionName
: string
: A unique name for this version.Promise<Version[]>
: A Promise resolving to an array of Version objects.versionId
: string
: The ID of the version to fetch.Promise<Version>
: A Promise resolving to the Version object.version
: Version
: The Version object to restore from.void
: void.