Skip to content

Instantly share code, notes, and snippets.

@kourge
Created March 7, 2018 20:28
Show Gist options
  • Save kourge/0dd966e5575d01819ef0a6096c58d3e8 to your computer and use it in GitHub Desktop.
Save kourge/0dd966e5575d01819ef0a6096c58d3e8 to your computer and use it in GitHub Desktop.
TypeScript: Extend one interface from another
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