This API exports an object with one method called "minimize".
AppMinimize.minimize();
window.AppMinimize.minimize();
window.AppMinimize.minimize();
(<any>window).AppMinimize.minimize();
try {
window.AppMinimize.minimize();
} catch (error) {
console.log(error);
}