Skip to content

Commit a199c15

Browse files
committed
Mark optional argument as optional
1 parent c867ce9 commit a199c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/baseclient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export class BaseClient {
337337
/**
338338
* Get all objects directly below a given path.
339339
*
340-
* @param path - Path to the folder. Must end in a forward slash.
340+
* @param path - (optional) Path to the folder. Must end in a forward slash.
341341
* @param maxAge - (optional) Either `false` or the maximum age of cached
342342
* objects in milliseconds. See [caching logic for read
343343
* operations](#caching-logic-for-read-operations).
@@ -392,7 +392,7 @@ export class BaseClient {
392392
*
393393
*/
394394
// TODO add real return type
395-
async getAll (path: string, maxAge?: false | number): Promise<unknown> {
395+
async getAll (path?: string, maxAge?: false | number): Promise<unknown> {
396396
if (typeof path !== 'string') { path = ''; }
397397
else if (path.length > 0 && !isFolder(path)) {
398398
return Promise.reject("Not a folder: " + path);

0 commit comments

Comments
 (0)