UNPKG

917 BTypeScriptView Raw
1declare module "../sites/types" {
2 interface _Site {
3 joinHubSite(siteId: string): Promise<void>;
4 registerHubSite(): Promise<void>;
5 unRegisterHubSite(): Promise<void>;
6 }
7 interface ISite {
8 /**
9 * Associates a site collection to a hub site.
10 *
11 * @param siteId Id of the hub site collection you want to join.
12 * If you want to disassociate the site collection from hub site, then
13 * pass the siteId as 00000000-0000-0000-0000-000000000000
14 */
15 joinHubSite(siteId: string): Promise<void>;
16 /**
17 * Registers the current site collection as hub site collection
18 */
19 registerHubSite(): Promise<void>;
20 /**
21 * Unregisters the current site collection as hub site collection.
22 */
23 unRegisterHubSite(): Promise<void>;
24 }
25}
26export {};
27//# sourceMappingURL=site.d.ts.map
\No newline at end of file