Skip to content

Commit 75a86ed

Browse files
committed
Revert change
1 parent 38b7356 commit 75a86ed

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/overview.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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`

packages/db-collections/src/local-only.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)