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