Last active
July 31, 2020 15:00
-
-
Save sketchbuch/9bc7c994f1882e5052b4b28a79091124 to your computer and use it in GitHub Desktop.
TS - Inherit from interface and overwrite inherited prop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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