diff --git a/src/puter-js/index.d.ts b/src/puter-js/index.d.ts index ea87fb11d..aaac57afa 100644 --- a/src/puter-js/index.d.ts +++ b/src/puter-js/index.d.ts @@ -227,7 +227,7 @@ interface FileSystem { rename(path: string, newName: string): Promise; space(): Promise; stat(path: string): Promise; - upload(items: FileList | File[] | Blob[], dirPath?: string, options?: object): Promise; + upload(items: FileList | File[] | Blob[], dirPath?: string, options?: UploadOptions): Promise; write(path: string, data?: string | File | Blob, options?: WriteOptions): Promise; } @@ -268,6 +268,12 @@ interface WriteOptions { createMissingParents?: boolean; } +interface UploadOptions { + overwrite?: boolean; + dedupeName?: boolean; + name?: string; +} + interface SpaceInfo { capacity: number; used: number;