typescript override type of property

Solutions on MaxInterview for typescript override type of property by the best coders in the world

showing results for - "typescript override type of property"
Viktoria
27 Nov 2017
1interface A {
2    x: string
3}
4
5export type B = Omit<A, 'x'> & { x: number };
6