UNPKG

@pnp/sp

Version:

pnp - provides a fluent api for working with SharePoint REST

12 lines 522 B
import { addProp } from "@pnp/queryable"; import { _Web } from "../webs/types.js"; import { Folders, Folder, folderFromServerRelativePath } from "./types.js"; addProp(_Web, "folders", Folders); addProp(_Web, "rootFolder", Folder); _Web.prototype.getFolderByServerRelativePath = function (folderRelativeUrl) { return folderFromServerRelativePath(this, folderRelativeUrl); }; _Web.prototype.getFolderById = function (uniqueId) { return Folder(this, `getFolderById('${uniqueId}')`); }; //# sourceMappingURL=web.js.map