Skip to content

Commit

Permalink
Updated getFolderAncestors jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Candel authored and Ramon Candel committed Oct 1, 2024
1 parent 2793320 commit 5f385d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/drive/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ export class Storage {
/**
* Gets the ancestors of a given folder UUID
*
* @param {string} folderUUID - UUID of the folder.
* @returns {Promise<FolderAncestor[]>}
* @param {string} uuid - UUID of the folder.
* @param {boolean} [isShared=false] - Whether the folder is a shared item or not.
* @returns {Promise<FolderAncestor[]>} A promise that resolves with an array of ancestors of the given folder.
*/
public getFolderAncestors(uuid: string, isShared = false): Promise<FolderAncestor[]> {
return this.client.get<FolderAncestor[]>(`folders/${uuid}/ancestors?isSharedItem=${isShared}`, this.headers());
Expand Down

0 comments on commit 5f385d7

Please sign in to comment.