Skip to content

Commit 163ff91

Browse files
committed
fix file param type
1 parent 46f4265 commit 163ff91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ export class Storage extends Service {
6969
*
7070
* @param {string} bucketId
7171
* @param {string} fileId
72-
* @param {any} file
72+
* @param {{name: string, type: string, size: number, uri: string}} file
7373
* @param {string[]} permissions
7474
* @throws {AppwriteException}
7575
* @returns {Promise}
7676
*/
77-
async createFile(bucketId: string, fileId: string, file: any, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise<Models.File> {
77+
async createFile(bucketId: string, fileId: string, file: {name: string, type: string, size: number, uri: string}, permissions?: string[], onProgress = (progress: UploadProgress) => {}): Promise<Models.File> {
7878
if (typeof bucketId === 'undefined') {
7979
throw new AppwriteException('Missing required parameter: "bucketId"');
8080
}

0 commit comments

Comments
 (0)