Typescript Check If Object Is Of Type String Has No Call