DEV Community

loading...

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 Author

thanks for noticing the typo