@@ -280,7 +280,8 @@ declare namespace AV {
280280 previousAttributes ( ) : any ;
281281 relation ( attr : string ) : Relation ;
282282 remove ( attr : string , item : any ) : any ;
283- save < T > ( options ?: Object . SaveOptions , arg2 ?: any , arg3 ?: any ) : Promise < T > ;
283+ save < T > ( attrs ?: object | null , options ?: Object . SaveOptions ) : Promise < T > ;
284+ save < T > ( key : string , value : any , options ?: Object . SaveOptions ) : Promise < T > ;
284285 set ( key : string , value : any , options ?: Object . SetOptions ) : boolean ;
285286 setACL ( acl : ACL , options ?: Object . SetOptions ) : boolean ;
286287 unset ( attr : string , options ?: Object . SetOptions ) : any ;
@@ -540,7 +541,6 @@ declare namespace AV {
540541 logIn ( options ?: AuthOptions ) : Promise < User > ;
541542 linkWithWeapp ( ) : Promise < User > ;
542543 fetch ( options ?: AuthOptions ) : Promise < User > ;
543- save ( arg1 ?: any , arg2 ?: any , arg3 ?: any ) : Promise < User > ;
544544 isAuthenticated ( ) : Promise < boolean > ;
545545 isCurrent ( ) : boolean ;
546546
@@ -559,7 +559,7 @@ declare namespace AV {
559559 refreshSessionToken ( options ?: AuthOptions ) : Promise < User > ;
560560
561561 getRoles ( options ?: AuthOptions ) : Promise < Role > ;
562-
562+
563563 follow ( user : User | string , authOptions ?: AuthOptions ) : Promise < void > ;
564564 follow ( options : { user : User | string , attributes ?: Object } , authOptions ?: AuthOptions ) : Promise < void > ;
565565 unfollow ( user : User | string , authOptions ?: AuthOptions ) : Promise < void > ;
@@ -751,7 +751,7 @@ declare namespace AV {
751751 function run ( name : string , data ?: any , options ?: AuthOptions ) : Promise < any > ;
752752 function requestSmsCode ( data : string | { mobilePhoneNumber : string , template ?: string , sign ?: string } , options ?: SMSAuthOptions ) : Promise < void > ;
753753 function verifySmsCode ( code : string , phone : string ) : Promise < void > ;
754- function requestCaptcha ( options ?: CaptchaOptions , authOptions ?: AuthOptions ) : Promise < AV . Captcha > ;
754+ function requestCaptcha ( options ?: CaptchaOptions , authOptions ?: AuthOptions ) : Promise < Captcha > ;
755755 function verifyCaptcha ( code : string , captchaToken : string ) : Promise < void > ;
756756 }
757757
0 commit comments