From d147889f19a8c66a7fb0a96a5f81822838b66ed0 Mon Sep 17 00:00:00 2001 From: andrei-markeev Date: Thu, 22 Jan 2015 22:54:34 +0200 Subject: [PATCH] Updated Camljs.d.ts to 2.5.2 version of the Camljs library --- camljs/camljs.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/camljs/camljs.d.ts b/camljs/camljs.d.ts index 23c847a11..4423cf885 100644 --- a/camljs/camljs.d.ts +++ b/camljs/camljs.d.ts @@ -12,6 +12,8 @@ declare class CamlBuilder { @param viewFields If omitted, default view fields are requested; otherwise, only values for the fields with the specified internal names are returned. Specifying view fields is a good practice, as it decreases traffic between server and client. */ public View(viewFields?: string[]): CamlBuilder.IView; + /** Generate tag for SPServices */ + public ViewFields(viewFields: string[]): CamlBuilder.IFinalizableToString; /** Use for: 1. SPServices CAMLQuery attribute 2. Creating partial expressions @@ -58,9 +60,11 @@ declare module CamlBuilder { interface IQuery { Where(): IFieldExpression; } - interface IFinalizable { + interface IFinalizableToString { /** Get the resulting CAML query as string */ ToString(): string; + } + interface IFinalizable extends IFinalizableToString { /** Get the resulting CAML query as SP.CamlQuery object */ ToCamlQuery(): any; } @@ -333,6 +337,7 @@ declare module CamlBuilder { } class Internal { static createView(viewFields?: string[]): IView; + static createViewFields(viewFields: string[]): IFinalizableToString; static createWhere(): IFieldExpression; static createExpression(): IFieldExpression; }