@rebasepro/client 0.10.1-canary.ed8caed → 0.10.1-canary.gdaf6ba4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ export interface ObserveOptions {
46
46
  * {@link SDKCollectionClient} when you want a transport-agnostic type.
47
47
  */
48
48
  export interface CollectionClient<M extends Record<string, unknown> = Record<string, unknown>, I = Partial<M>, U = Partial<M>> extends SDKCollectionClient<M, I, U> {
49
- count(params?: FindParams): Promise<number>;
49
+ count(params?: FindParams<M>): Promise<number>;
50
50
  /**
51
51
  * Subscribe to a query's results.
52
52
  *
@@ -62,7 +62,7 @@ export interface CollectionClient<M extends Record<string, unknown> = Record<str
62
62
  *
63
63
  * @returns An unsubscribe function.
64
64
  */
65
- observe(params: FindParams | undefined, onResult: (result: LiveResult<M>) => void, onError?: (error: Error) => void, options?: ObserveOptions): () => void;
65
+ observe(params: FindParams<M> | undefined, onResult: (result: LiveResult<M>) => void, onError?: (error: Error) => void, options?: ObserveOptions): () => void;
66
66
  /** {@link CollectionClient.observe} for a single row. */
67
67
  observeById(id: string | number, onResult: (row: M | undefined, meta: RowSnapshotMeta) => void, onError?: (error: Error) => void, options?: ObserveOptions): () => void;
68
68
  }