From 1a30753cba3ed7b3fa23260379f32a2cd5b47ff1 Mon Sep 17 00:00:00 2001 From: IdeaHunter Date: Sat, 24 Dec 2016 23:31:46 +0300 Subject: [PATCH] Add missing SP.ClientObject methods from MSDN spec (#13335) --- sharepoint/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sharepoint/index.d.ts b/sharepoint/index.d.ts index e95cad9303..75e67656b8 100644 --- a/sharepoint/index.d.ts +++ b/sharepoint/index.d.ts @@ -2107,6 +2107,7 @@ declare namespace SP { constructor(context: SP.ClientRuntimeContext, typeId: string, methodName: string, parameters: any[]); } export class ClientObject { + constructor(context: SP.ClientRuntimeContext, objectPath: SP.ObjectPath); get_context(): SP.ClientRuntimeContext; get_path(): SP.ObjectPath; get_objectVersion(): string; @@ -2120,6 +2121,8 @@ declare namespace SP { isObjectPropertyInstantiated(propertyName: string): boolean; get_serverObjectIsNull(): boolean; get_typedObject(): SP.ClientObject; + initPropertiesFromJson(initValue: any): void; + checkUninitializedProperty(propName: string): void; } export class ClientObjectData { get_properties(): any;