Typescript Get Type In Javascript Alert