Typescript Get Type In Javascript Object