File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import {
2- createCollection ,
3- type IR ,
4- parseLoadSubsetOptions ,
5- } from "@tanstack/db" ;
1+ import { createCollection , parseLoadSubsetOptions } from "@tanstack/db" ;
62import { queryCollectionOptions } from "@tanstack/query-db-collection" ;
73import { toast } from "sonner" ;
84import type { TodoItemRecord } from "@/db/schema" ;
@@ -58,12 +54,7 @@ export const todoItemsCollection = createCollection<TodoItemRecord>(
5854 const params = new URLSearchParams ( ) ;
5955
6056 if ( meta ) {
61- const { limit, offset, where, orderBy } = meta . loadSubsetOptions as {
62- where ?: IR . BasicExpression < boolean > ;
63- orderBy ?: IR . OrderBy ;
64- offset ?: IR . Offset ;
65- limit ?: number ;
66- } ;
57+ const { limit, offset, where, orderBy } = meta . loadSubsetOptions ;
6758
6859 // Parse the expressions into simple format
6960 const parsed = parseLoadSubsetOptions ( { where, orderBy, limit } ) ;
You can’t perform that action at this time.
0 commit comments