@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
13 lines • 453 B
JavaScript
import { _Web, Web } from "../webs/types.js";
import { spPost } from "../operations.js";
_Web.prototype.hubSiteData = async function (forceRefresh = false) {
const data = await Web(this, `hubSiteData(${forceRefresh})`)();
if (typeof data === "string") {
return JSON.parse(data);
}
return data;
};
_Web.prototype.syncHubSiteTheme = function () {
return spPost(Web(this, "syncHubSiteTheme"));
};
//# sourceMappingURL=web.js.map