import { INavigation } from "../../@types/lib" ; import { Base , Request } from "../utils" ; /**
 * Navigation
 */ export const Navigation = ( ( url ? , targetInfo ? ) => { let navigation = new Base ( targetInfo ) ; navigation . targetInfo . defaultToWebFl = true ; navigation . targetInfo . endpoint = "navigation" ; if ( url ) { navigation . targetInfo . url = url ; } Request . addMethods ( navigation , { __metadata : { type : "Microsoft.SharePoint.Navigation.REST.NavigationServiceRest" } } ) ; return navigation ; } ) as any as INavigation ;