Skip to content

Commit 084a04f

Browse files
Merge pull request #651 from appwrite/fix-node-query-types
Add typing for new Query methods in the Node SDK
2 parents 4057e14 + 868729f commit 084a04f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

templates/node/index.d.ts.twig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,18 @@ declare module "{{ language.params.npmPackage|caseDash }}" {
157157

158158
static greaterThanEqual(attribute: string, value: QueryTypes): string;
159159

160+
static isNull(attribute: string): string;
161+
162+
static isNotNull(attribute: string): string;
163+
164+
static between<T extends string | number>(attribute: string, start: T, end: T): string;
165+
166+
static startsWith(attribute: string, value: string): string;
167+
168+
static endsWith(attribute: string, value: string): string;
169+
170+
static select(attributes: string[]): string;
171+
160172
static search(attribute: string, value: string): string;
161173

162174
static orderDesc(attribute: string): string;

0 commit comments

Comments
 (0)