typescript Omit keys of a class and get other optioal code example
Example: typescript utility types merge interfaces
interface A {
x: string
}
interface B extends Omit<A, 'x'> {
x: number
}
interface A {
x: string
}
interface B extends Omit<A, 'x'> {
x: number
}