typescript override type of property 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 };