Check If Object Instance Of Typescript Compiler