Skip to content

Commit d3b420d

Browse files
authored
Merge pull request #1193 from appwrite/spatial-type-queries
updated equal type queries for ts
2 parents ad072ef + 3447a41 commit d3b420d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

templates/deno/src/query.ts.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export class Query {
3333
});
3434
}
3535

36-
static equal = (attribute: string, value: QueryTypes | any[]): string =>
36+
static equal = (attribute: string, value: QueryTypes): string =>
3737
new Query("equal", attribute, value).toString();
3838

39-
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
39+
static notEqual = (attribute: string, value: QueryTypes): string =>
4040
new Query("notEqual", attribute, value).toString();
4141

4242
static lessThan = (attribute: string, value: QueryTypes): string =>

templates/react-native/src/query.ts.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export class Query {
3333
});
3434
}
3535

36-
static equal = (attribute: string, value: QueryTypes | any[]): string =>
36+
static equal = (attribute: string, value: QueryTypes): string =>
3737
new Query("equal", attribute, value).toString();
3838

39-
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
39+
static notEqual = (attribute: string, value: QueryTypes): string =>
4040
new Query("notEqual", attribute, value).toString();
4141

4242
static lessThan = (attribute: string, value: QueryTypes): string =>

templates/web/src/query.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ export class Query {
5252
* Filter resources where attribute is equal to value.
5353
*
5454
* @param {string} attribute
55-
* @param {QueryTypes | any[]} value
55+
* @param {QueryTypes} value
5656
* @returns {string}
5757
*/
58-
static equal = (attribute: string, value: QueryTypes | any[]): string =>
58+
static equal = (attribute: string, value: QueryTypes): string =>
5959
new Query("equal", attribute, value).toString();
6060

6161
/**
6262
* Filter resources where attribute is not equal to value.
6363
*
6464
* @param {string} attribute
65-
* @param {QueryTypes | any[]} value
65+
* @param {QueryTypes} value
6666
* @returns {string}
6767
*/
68-
static notEqual = (attribute: string, value: QueryTypes | any[]): string =>
68+
static notEqual = (attribute: string, value: QueryTypes): string =>
6969
new Query("notEqual", attribute, value).toString();
7070

7171
/**

0 commit comments

Comments
 (0)