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 @@ -38,6 +38,14 @@ declare namespace AV {
3838 ttl ?: number ;
3939 }
4040
41+ interface FileSaveOptions extends AuthOptions {
42+ onprogress ?: ( event : {
43+ loaded : number ,
44+ total : number ,
45+ percent : number ,
46+ } ) => void ;
47+ }
48+
4149 export interface WaitOption {
4250 /**
4351 * Set to true to wait for the server to confirm success
@@ -151,7 +159,7 @@ declare namespace AV {
151159 name ( ) : string ;
152160 ownerId ( ) : string ;
153161 url ( ) : string ;
154- save ( options ?: AuthOptions ) : Promise < File > ;
162+ save ( options ?: FileSaveOptions ) : Promise < File > ;
155163 setACL ( acl ?: ACL ) : any ;
156164 size ( ) : any ;
157165 thumbnailURL ( width : number , height : number ) : string ;
@@ -298,7 +306,10 @@ declare namespace AV {
298306
299307 interface DestroyAllOptions extends AuthOptions { }
300308
301- interface SaveOptions extends AuthOptions , SilentOption , WaitOption { }
309+ interface SaveOptions extends AuthOptions , SilentOption , WaitOption {
310+ fetchWhenSave ?: boolean ,
311+ where ?: Query ,
312+ }
302313
303314 interface SaveAllOptions extends AuthOptions { }
304315
You can’t perform that action at this time.
0 commit comments