UNPKG

882 BTypeScriptView Raw
1import { IHubSiteWebData } from "./types.js";
2declare module "../webs/types" {
3 interface _Web {
4 hubSiteData(forceRefresh?: boolean): Promise<Partial<IHubSiteWebData>>;
5 syncHubSiteTheme(): Promise<void>;
6 }
7 interface IWeb {
8 /**
9 * Gets hub site data for the current web.
10 *
11 * @param forceRefresh Default value is false. When false, the data is returned from the server's cache.
12 * When true, the cache is refreshed with the latest updates and then returned.
13 * Use this if you just made changes and need to see those changes right away.
14 */
15 hubSiteData(forceRefresh?: boolean): Promise<Partial<IHubSiteWebData>>;
16 /**
17 * Applies theme updates from the parent hub site collection.
18 */
19 syncHubSiteTheme(): Promise<void>;
20 }
21}
22//# sourceMappingURL=web.d.ts.map
\No newline at end of file