Skip to content

Commit 50d1c87

Browse files
committed
more documents
1 parent bbe11c0 commit 50d1c87

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/lib/storage/StorageApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export class StorageApi {
299299
* Lists all the files within a bucket.
300300
* @param bucketId The bucket which contains the files.
301301
* @param path The folder path.
302-
* @param options Search options.
302+
* @param options Search options, including `limit`, `offset`, and `sortBy`.
303303
*/
304304
async listFiles(
305305
bucketId: string,

src/lib/storage/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ export interface SortBy {
2222
column?: string
2323
order?: string
2424
}
25-
2625
export interface SearchOptions {
26+
/** The number of files you want to be returned. */
2727
limit?: number
28+
29+
/** The starting position. */
2830
offset?: number
31+
32+
/** The column to sort by. Can be any column inside a FileObject. */
2933
sortBy?: SortBy
3034
}
3135

0 commit comments

Comments
 (0)