@@ -288,7 +288,8 @@ declare namespace AV {
288288 previousAttributes ( ) : any ;
289289 relation ( attr : string ) : Relation ;
290290 remove ( attr : string , item : any ) : any ;
291- save < T > ( options ?: Object . SaveOptions , arg2 ?: any , arg3 ?: any ) : Promise < T > ;
291+ save < T > ( attrs ?: object | null , options ?: Object . SaveOptions ) : Promise < T > ;
292+ save < T > ( key : string , value : any , options ?: Object . SaveOptions ) : Promise < T > ;
292293 set ( key : string , value : any , options ?: Object . SetOptions ) : boolean ;
293294 setACL ( acl : ACL , options ?: Object . SetOptions ) : boolean ;
294295 unset ( attr : string , options ?: Object . SetOptions ) : any ;
@@ -553,7 +554,6 @@ declare namespace AV {
553554 logIn ( options ?: AuthOptions ) : Promise < User > ;
554555 linkWithWeapp ( ) : Promise < User > ;
555556 fetch ( options ?: AuthOptions ) : Promise < User > ;
556- save ( arg1 ?: any , arg2 ?: any , arg3 ?: any ) : Promise < User > ;
557557 isAuthenticated ( ) : Promise < boolean > ;
558558 isCurrent ( ) : boolean ;
559559
@@ -572,7 +572,7 @@ declare namespace AV {
572572 refreshSessionToken ( options ?: AuthOptions ) : Promise < User > ;
573573
574574 getRoles ( options ?: AuthOptions ) : Promise < Role > ;
575-
575+
576576 follow ( user : User | string , authOptions ?: AuthOptions ) : Promise < void > ;
577577 follow ( options : { user : User | string , attributes ?: Object } , authOptions ?: AuthOptions ) : Promise < void > ;
578578 unfollow ( user : User | string , authOptions ?: AuthOptions ) : Promise < void > ;
@@ -764,7 +764,7 @@ declare namespace AV {
764764 function run ( name : string , data ?: any , options ?: AuthOptions ) : Promise < any > ;
765765 function requestSmsCode ( data : string | { mobilePhoneNumber : string , template ?: string , sign ?: string } , options ?: SMSAuthOptions ) : Promise < void > ;
766766 function verifySmsCode ( code : string , phone : string ) : Promise < void > ;
767- function requestCaptcha ( options ?: CaptchaOptions , authOptions ?: AuthOptions ) : Promise < AV . Captcha > ;
767+ function requestCaptcha ( options ?: CaptchaOptions , authOptions ?: AuthOptions ) : Promise < Captcha > ;
768768 function verifyCaptcha ( code : string , captchaToken : string ) : Promise < void > ;
769769 }
770770
0 commit comments