File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
packages/db-collections/src Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -575,9 +575,6 @@ insert([
575575 { text: "Buy groceries", completed: false },
576576 { text: "Walk dog", completed: false },
577577])
578-
579- // Insert with custom key
580- insert({ text: "Buy groceries" }, { key: "grocery-task" })
581578` ` `
582579
583580##### ` update `
Original file line number Diff line number Diff line change @@ -224,10 +224,9 @@ export function localOnlyCollectionOptions<
224224 * @param initialData - Optional array of initial items to populate the collection
225225 * @returns Object with sync configuration and confirmOperationsSync function
226226 */
227- function createLocalOnlySync <
228- T extends object ,
229- TKey extends string | number = string | number ,
230- > ( initialData ?: Array < T > ) {
227+ function createLocalOnlySync < T extends object , TKey extends string | number > (
228+ initialData ?: Array < T >
229+ ) {
231230 // Capture sync functions for transaction confirmation
232231 let syncBegin : ( ( ) => void ) | null = null
233232 let syncWrite : ( ( message : { type : OperationType ; value : T } ) => void ) | null =
You can’t perform that action at this time.
0 commit comments