ts how to type a variable code example Example: angular type of string if(typeof myVariable === 'string'){ //do }