Skip to content

Instantly share code, notes, and snippets.

@sketchbuch
Last active July 31, 2020 15:00
Show Gist options
  • Save sketchbuch/9bc7c994f1882e5052b4b28a79091124 to your computer and use it in GitHub Desktop.
Save sketchbuch/9bc7c994f1882e5052b4b28a79091124 to your computer and use it in GitHub Desktop.
TS - Inherit from interface and overwrite inherited prop
export interface InterfaceA {
value: string
}
export interface InterfaceB extends Omit<InterfaceA, 'value'> {
value: boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment