Skip to content

Commit

Permalink
[Files] Update the download method on the files client (#141904)
Browse files Browse the repository at this point in the history
* update the download method on the files client

* rather link to FileJSON
  • Loading branch information
jloleysens authored Sep 27, 2022
1 parent 405997e commit ead1cf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/files/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ export interface FilesClient extends GlobalEndpoints {
/**
* Get a string for downloading a file that can be passed to a button element's
* href for download.
*
* @param args - get download URL args
*/
getDownloadHref: (file: FileJSON) => string;
getDownloadHref: (args: Pick<FileJSON, 'id' | 'fileKind'>) => string;
/**
* Share a file by creating a new file share instance.
*
Expand Down

0 comments on commit ead1cf3

Please sign in to comment.