@@ -116,7 +116,7 @@ declare namespace AV {
116116 * this is omitted, the content type will be inferred from the name's
117117 * extension.
118118 */
119- export class File {
119+ export class File extends BaseObject {
120120
121121 constructor ( name : string , data : any , type ?: string ) ;
122122 static withURL ( name : string , url : string ) : File ;
@@ -134,6 +134,7 @@ declare namespace AV {
134134 setACL ( acl ?: ACL ) : any ;
135135 size ( ) : any ;
136136 thumbnailURL ( width : number , height : number ) : string ;
137+ toFullJSON ( ) : any ;
137138 }
138139
139140 /**
@@ -268,7 +269,7 @@ declare namespace AV {
268269 setACL ( acl : ACL , options ?: Object . SetOptions ) : boolean ;
269270 unset ( attr : string , options ?: Object . SetOptions ) : any ;
270271 validate ( attrs : any ) : any ;
271-
272+ toFullJSON ( ) : any ;
272273 }
273274
274275 export namespace Object {
@@ -689,6 +690,8 @@ declare namespace AV {
689690 /**
690691 *options : {appId:'',appKey:'',masterKey:''}
691692 */
692- export function init ( options : any ) : void ;
693+ export function init ( options : { appId : string , appKey : string , masterKey ?: string } ) : void ;
694+
695+ export function parseJSON ( json : any ) : Object | File | any ;
693696}
694697export = AV ;
0 commit comments