@squidcloud/client 1.0.97 → 1.0.99

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.
@@ -19,6 +19,14 @@ export interface SnapshotEmitter<ReturnType> {
19
19
  * @returns An observable for the query results.
20
20
  */
21
21
  snapshots(subscribe?: boolean): Observable<Array<ReturnType>>;
22
+ /**
23
+ * Returns the results of the query based on the data that is currently available on the client. This method is useful
24
+ * for synchronously accessing data that has already been fetched by another query. The method will return an empty
25
+ * array if data has not yet been populated.
26
+ *
27
+ * @returns An array of query results.
28
+ */
29
+ peek(): Array<ReturnType>;
22
30
  limit(limit: number): SnapshotEmitter<ReturnType>;
23
31
  /**
24
32
  * Returns a pagination wrapper for this query.