@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
33 lines • 1.12 kB
TypeScript
import { IFolders, IFolder } from "./types.js";
declare module "../webs/types" {
interface _Web {
readonly folders: IFolders;
readonly rootFolder: IFolder;
getFolderByServerRelativePath(folderRelativeUrl: string): IFolder;
getFolderById(uniqueId: string): IFolder;
}
interface IWeb {
/**
* Gets the collection of folders in this web
*/
readonly folders: IFolders;
/**
* Gets the root folder of the web
*/
readonly rootFolder: IFolder;
/**
* Gets a folder by server relative path if your folder name contains # and % characters
* This works only in SharePoint online.
*
* @param folderRelativeUrl The server relative path to the folder (including /sites/ if applicable)
*/
getFolderByServerRelativePath(folderRelativeUrl: string): IFolder;
/**
* Gets a folder by id
*
* @param uniqueId The UniqueId of the folder
*/
getFolderById(uniqueId: string): IFolder;
}
}
//# sourceMappingURL=web.d.ts.map