typescript as keyword code example
Example 1: use type as value typescript
Typescript interfaces aren''t being compiled into the js output, and you can not use them at runtime
Example 2: angular type of string
if(typeof myVariable === 'string'){
//do
}