@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
27 lines • 917 B
TypeScript
declare module "../sites/types" {
interface _Site {
joinHubSite(siteId: string): Promise<void>;
registerHubSite(): Promise<void>;
unRegisterHubSite(): Promise<void>;
}
interface ISite {
/**
* Associates a site collection to a hub site.
*
* @param siteId Id of the hub site collection you want to join.
* If you want to disassociate the site collection from hub site, then
* pass the siteId as 00000000-0000-0000-0000-000000000000
*/
joinHubSite(siteId: string): Promise<void>;
/**
* Registers the current site collection as hub site collection
*/
registerHubSite(): Promise<void>;
/**
* Unregisters the current site collection as hub site collection.
*/
unRegisterHubSite(): Promise<void>;
}
}
export {};
//# sourceMappingURL=site.d.ts.map