import { IUserProfile } from "../../@types/lib" ; import { ITargetInfoProps } from "../../@types/utils" ; import { Base , Request } from "../utils" ; /**
 * User Profile
 */ export const UserProfile = ( ( targetInfo ? ) => { let userProfile = new Base ( targetInfo ) ; userProfile . targetInfo . defaultToWebFl = true ; userProfile . targetInfo . endpoint = "sp.userprofiles.profileloader.getprofileloader/getUserProfile" ; userProfile . targetInfo . method = "POST" ; Request . addMethods ( userProfile , { __metadata : { type : "SP.UserProfiles.UserProfile" } } ) ; return userProfile ; } ) as any as IUserProfile ;