get value type in typescript code example
Example 1: typescript get type
if (typeof abc === "number") {
// do something
}
Example 2: use type as value typescript
Typescript interfaces aren''t being compiled into the js output, and you can not use them at runtime