We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577ee35 commit 921e05dCopy full SHA for 921e05d
‎src/crud/types.ts
@@ -46,6 +46,14 @@ export interface CrudApi {
46
*/
47
drop: (collection: CrudCollection, silent?: boolean) => Promise<void>;
48
49
+ /**
50
+ * Iterates over all resources of a collection.
51
+ *
52
+ * @param collection Type of the resource, collection name.
53
+ * @returns Iterator of resources of the given type.
54
+ */
55
+ scan: (collection: CrudCollection) => AsyncIterableIterator<CrudCollectionEntry>;
56
+
57
/**
58
* Fetches a list of resources of a collection, and sub-collections.
59
*
@@ -84,8 +92,3 @@ export interface CrudResourceInfo extends CrudCollectionEntry {
84
92
/** Timestamp when the resource was created. */
85
93
created?: number;
86
94
}
87
-
88
-export interface CrudScanResult {
89
- cursor: string | '';
90
- list: CrudCollectionEntry[];
91
-}
0 commit comments