sharepoint: further fixed constructors declarations following recommendations

This commit is contained in:
Vincent Biret
2018-05-22 11:21:35 +02:00
parent 11bf2bb552
commit f256322874
+4 -8
View File
@@ -2157,15 +2157,11 @@ declare namespace SP {
}
let ClientObjectCollection: ClientObjectCollectionConstructor;
interface ClientObjectList<T> extends SP.ClientObjectCollection<T> {
new(context: SP.ClientRuntimeContext, objectPath: SP.ObjectPath, childItemType: any): ClientObjectList<T>;
class ClientObjectList<T> extends SP.ClientObjectCollection<T> {
constructor(context: SP.ClientRuntimeContext, objectPath: SP.ObjectPath, childItemType: any);
fromJson(initValue: any): void;
customFromJson(initValue: any): boolean;
}
interface ClientObjectListConstructor {
new<T>(context: SP.ClientRuntimeContext, objectPath: SP.ObjectPath, childItemType: any): ClientObjectList<T>;
}
let ClientObjectList: ClientObjectListConstructor;
class ClientObjectPrototype {
retrieve(propertyNames?: string[]): void;
retrieveObject(propertyName: string): SP.ClientObjectPrototype;
@@ -2209,8 +2205,8 @@ declare namespace SP {
}
class ClientRequestSucceededEventArgs extends SP.ClientRequestEventArgs {
}
interface ClientRuntimeContext extends Sys.IDisposable {
new(serverRelativeUrlOrFullUrl: string): ClientRuntimeContext;
class ClientRuntimeContext implements Sys.IDisposable {
constructor(serverRelativeUrlOrFullUrl: string);
get_url(): string;
get_viaUrl(): string;
set_viaUrl(value: string): void;