DEV Community

Discussion on: More time coding, less time debugging. Interfaces in TypeScript applications

Collapse
 
theodesp profile image
Theofanis Despoudis

The interface declaration for Typescript is:

interface Person {
  hairColor: string;
  height?: number;
  [prop: string]: any;
}
Collapse
 
keevcodes profile image
Andrew McKeever

thanks for noticing the typo