From 7373557dbdcaf86255186a710ba75a074a8f2123 Mon Sep 17 00:00:00 2001 From: ombayev Date: Sat, 23 Jun 2018 11:15:33 +0600 Subject: [PATCH] rest and list methode should all return Promise --- dist/sprestlib.d.ts | 104 ++++++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/dist/sprestlib.d.ts b/dist/sprestlib.d.ts index e6acf40..b23e3e0 100644 --- a/dist/sprestlib.d.ts +++ b/dist/sprestlib.d.ts @@ -4,56 +4,56 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace sprLib { - const version: string; - - function baseUrl(): string; - function baseUrl(baseUrl: string): void; - - function nodeConfig(options: object): void; - - function renewSecurityToken(): void; - - /** - * SharePoint List/Library API. - * - * @see \`{@link https://gitbrent.github.io/SpRestLib/docs/api-list.html }\` - * @since 1.0 - */ - class list { - constructor(listName: string); - constructor(listGuid: string); - constructor(options: object); - - cols(): object[]; - info(): object[]; - perms(): object[]; - - items(options: object): object[]; - create(options: object): object[]; - update(options: object): object[]; - delete(options: object): number; - recycle(options: object): number; - } - - function rest(options: object): object[]; - - class site { - constructor(siteUrl?: string); - - info(): object[]; - lists(): object[]; - subsites(): object[]; - perms(): object[]; - roles(): object[]; - groups(): object[]; - users(): object[]; - } - - class user { - constructor(options: object); - - info(): object; - groups(): object[]; - profile(arrProfileKeys: object): object; - } + const version: string; + + function baseUrl(): string; + function baseUrl(baseUrl: string): void; + + function nodeConfig(options: object): void; + + function renewSecurityToken(): void; + + /** + * SharePoint List/Library API. + * + * @see \`{@link https://gitbrent.github.io/SpRestLib/docs/api-list.html }\` + * @since 1.0 + */ + class list { + constructor(listName: string); + constructor(listGuid: string); + constructor(options: object); + + cols(): object[]; + info(): object[]; + perms(): object[]; + + items(options: object): Promise; + create(options: object): Promise; + update(options: object): Promise; + delete(options: object): Promise; + recycle(options: object): Promise; + } + + function rest(options: object): Promise; + + class site { + constructor(siteUrl?: string); + + info(): object[]; + lists(): object[]; + subsites(): object[]; + perms(): object[]; + roles(): object[]; + groups(): object[]; + users(): object[]; + } + + class user { + constructor(options?: object); + + info(): Promise; + groups(): object[]; + profile(arrProfileKeys: object): object; + } }