param { MxObject } objectToRefresh returns { Promise . < void > } export async function RefreshObject ( objectToRefresh ) { if ( ! objectToRefresh ) { return Promise . reject ( new Error ( "ObjectToRefresh parameter is required" ) ) ; } return new Promise ( resolve => { mx . data . update ( { guid : objectToRefresh . getGuid ( ) , callback : ( ) => resolve ( true ) } ) ; } ) ; }