Skip to content

Commit 1f74896

Browse files
aiskleeyeh
authored andcommitted
fix(ts): AV.Push.send type interface (#503)
1 parent 06f699d commit 1f74896

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/push.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = function(AV) {
3030
data.where = data.where.toJSON().where;
3131
}
3232

33-
if(data.where && data.cql){
33+
if (data.where && data.cql) {
3434
throw new Error("Both where and cql can't be set");
3535
}
3636

storage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ declare namespace AV {
766766
expiration_time?: Date;
767767
expiration_interval?: number;
768768
where?: Query;
769+
cql?: string;
769770
data?: any;
770771
alert?: string;
771772
badge?: string;

0 commit comments

Comments
 (0)