Created
March 7, 2018 20:28
-
-
Save kourge/0dd966e5575d01819ef0a6096c58d3e8 to your computer and use it in GitHub Desktop.
TypeScript: Extend one interface from another
This file contains 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
interface Narrow { | |
x: number; | |
y: number; | |
} | |
interface Wide extends Narrow { | |
z: number; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment