Check out example codes for "typescript utility types merge interfaces". It will help you in understanding the concepts better.

Code Example 1

interface A {
    x: string
}

interface B extends Omit<A, 'x'> {
  x: number
}

Learn ReactJs, React Native from akashmittal.com