UNPKG

1.12 kBTypeScriptView Raw
1import { IFolders, IFolder } from "./types.js";
2declare module "../webs/types" {
3 interface _Web {
4 readonly folders: IFolders;
5 readonly rootFolder: IFolder;
6 getFolderByServerRelativePath(folderRelativeUrl: string): IFolder;
7 getFolderById(uniqueId: string): IFolder;
8 }
9 interface IWeb {
10 /**
11 * Gets the collection of folders in this web
12 */
13 readonly folders: IFolders;
14 /**
15 * Gets the root folder of the web
16 */
17 readonly rootFolder: IFolder;
18 /**
19 * Gets a folder by server relative path if your folder name contains # and % characters
20 * This works only in SharePoint online.
21 *
22 * @param folderRelativeUrl The server relative path to the folder (including /sites/ if applicable)
23 */
24 getFolderByServerRelativePath(folderRelativeUrl: string): IFolder;
25 /**
26 * Gets a folder by id
27 *
28 * @param uniqueId The UniqueId of the folder
29 */
30 getFolderById(uniqueId: string): IFolder;
31 }
32}
33//# sourceMappingURL=web.d.ts.map
\No newline at end of file