Skip to content

Files

Latest commit

 

History

History
17 lines (12 loc) · 181 Bytes

how-to-extend-an-interface.md

File metadata and controls

17 lines (12 loc) · 181 Bytes

How to Extend an Interface


In TypeScript you can extend an interface:

interface Animal {
  name: string;
}

interface Bird extends {
  breed: string;
}

link