File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,14 @@ declare namespace AV {
4545 ttl ?: number ;
4646 }
4747
48+ interface FileSaveOptions extends AuthOptions {
49+ onprogress ?: ( event : {
50+ loaded : number ,
51+ total : number ,
52+ percent : number ,
53+ } ) => void ;
54+ }
55+
4856 export interface WaitOption {
4957 /**
5058 * Set to true to wait for the server to confirm success
@@ -158,7 +166,7 @@ declare namespace AV {
158166 name ( ) : string ;
159167 ownerId ( ) : string ;
160168 url ( ) : string ;
161- save ( options ?: AuthOptions ) : Promise < File > ;
169+ save ( options ?: FileSaveOptions ) : Promise < File > ;
162170 setACL ( acl ?: ACL ) : any ;
163171 size ( ) : any ;
164172 thumbnailURL ( width : number , height : number ) : string ;
@@ -306,7 +314,10 @@ declare namespace AV {
306314
307315 interface DestroyAllOptions extends AuthOptions { }
308316
309- interface SaveOptions extends AuthOptions , SilentOption , WaitOption { }
317+ interface SaveOptions extends AuthOptions , SilentOption , WaitOption {
318+ fetchWhenSave ?: boolean ,
319+ where ?: Query ,
320+ }
310321
311322 interface SaveAllOptions extends AuthOptions { }
312323
You can’t perform that action at this time.
0 commit comments