import { IWebTemplateExtensions } from "../../@types/lib" ; import { ITargetInfoProps } from "../../@types/utils" ; import { Base , Request } from "../utils" ; /**
 * Web Template Extensions
 */ export const WebTemplateExtensions = ( ( url , targetInfo ? ) => { let webTemplateExtensions = new Base ( targetInfo ) ; webTemplateExtensions . targetInfo . defaultToWebFl = true ; webTemplateExtensions . targetInfo . endpoint = "Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility" ; if ( url ) { webTemplateExtensions . targetInfo . url = url ; } Request . addMethods ( webTemplateExtensions , { __metadata : { type : "webTemplateExtensions" } } ) ; return webTemplateExtensions ; } ) as any as IWebTemplateExtensions ;