override type typescript code example
Example: typescript override type of property
interface A {
x: string
}
export type B = Omit<A, 'x'> & { x: number };
interface A {
x: string
}
export type B = Omit<A, 'x'> & { x: number };