Skip to content

Commit 43cb69e

Browse files
committed
fixes type
1 parent f6789c6 commit 43cb69e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ If this is your first time using Appwrite, create an account and create your fir
3030
Then, under **Add a platform**, add a **Android app** or a **Apple app**. You can skip optional steps.
3131

3232
#### iOS steps
33-
Add your app **name** and **Bundle ID**. You can find your **Bundle Identifier** in the **General** tab for your app's primary target in XCode.
33+
Add your app **name** and **Bundle ID**. You can find your **Bundle Identifier** in the **General** tab for your app's primary target in XCode. For Expo projects you can set or find it on **app.json** file at your project's root directory.
3434

3535
#### Android steps
36-
Add your app's **name** and **package name**, Your package name is generally the **applicationId** in your app-level [build.gradle](https://github.com/appwrite/playground-for-flutter/blob/master/android/app/build.gradle#L41) file.
36+
Add your app's **name** and **package name**, Your package name is generally the **applicationId** in your app-level **build.gradle** file. For Expo projects you can set or find it on **app.json** file at your project's root directory.
3737

3838
## Setup
3939

src/services/storage.ts

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

0 commit comments

Comments
 (0)