typescript types built in code example
Example 1: angular type of string
if(typeof myVariable === 'string'){
//do
}
Example 2: typescript utility types merge interfaces
interface A {
x: string
}
interface B extends Omit<A, 'x'> {
x: number
}