import { IHubSites } from "../../@types/lib" ; import { ITargetInfoProps } from "../../@types/utils" ; import { Base , Request } from "../utils" ; /**
 * Hub Sites
 */ export const HubSites = ( ( targetInfo ? ) => { let hubs = new Base ( targetInfo ) ; hubs . targetInfo . defaultToWebFl = true ; hubs . targetInfo . endpoint = "hubsites" ; Request . addMethods ( hubs , { __metadata : { type : "SP.HubSite.Collection" } } ) ; return hubs ; } ) as any as IHubSites ; HubSites . canCreate = ( ( ) => { return new Base ( { endpoint : "SP.HubSites.CanCreate" } ) ; } ) as any ;