From 8436b3fda0b8395f4b667e289ebbdf4857895687 Mon Sep 17 00:00:00 2001 From: "anti.veeranna" Date: Tue, 3 Sep 2013 03:00:09 -0400 Subject: [PATCH] type definitions for TableQuery class --- node-azure/azure.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/node-azure/azure.d.ts b/node-azure/azure.d.ts index 374eec439..1ed0e7436 100644 --- a/node-azure/azure.d.ts +++ b/node-azure/azure.d.ts @@ -184,7 +184,16 @@ declare module "azure" { } export class TableQuery { - + static select(...fields: string[]): TableQuery; + from(table: string): TableQuery; + whereKeys(partitionKey: string, rowKey: string): TableQuery; + whereNextKeys(partitionKey: string, rowKey: string): TableQuery; + where(condition: string, ...values: string[]): TableQuery; + and(condition: string, ...arguments: string[]): TableQuery; + or(condition: string, ...arguments: string[]): TableQuery; + top(integer): TableQuery; + toQueryObject(): any; + toPath(): string; } export class BatchServiceClient extends StorageServiceClient { @@ -361,4 +370,4 @@ declare module "azure" { //#endregion export function isEmulated(): boolean; -} \ No newline at end of file +}