diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts index c3bfa231d9..564114a082 100644 --- a/types/parse/index.d.ts +++ b/types/parse/index.d.ts @@ -361,7 +361,7 @@ declare namespace Parse { previousAttributes(): any; relation(attr: string): Relation; remove(attr: string, item: any): any; - save(attrs?: { [key: string]: any }, options?: Object.SaveOptions): Promise; + save(attrs?: { [key: string]: any } | null, options?: Object.SaveOptions): Promise; save(key: string, value: any, options?: Object.SaveOptions): Promise; set(key: string, value: any, options?: Object.SetOptions): boolean; setACL(acl: ACL, options?: SuccessFailureOptions): boolean; diff --git a/types/parse/parse-tests.ts b/types/parse/parse-tests.ts index 91f3f2cc02..36dc7cb334 100644 --- a/types/parse/parse-tests.ts +++ b/types/parse/parse-tests.ts @@ -244,8 +244,8 @@ function test_user_acl_roles() { var game = new Game(); game.set("score", new GameScore()); game.setACL(new Parse.ACL(Parse.User.current())); - game.save().then((game: Game) => { - }); + game.save().then((game: Game) => {}); + game.save(null, { useMasterKey: true }); var groupACL = new Parse.ACL();