getting-things-done-in-next-js icon indicating copy to clipboard operation
getting-things-done-in-next-js copied to clipboard

TypeScript Type/Interface

Open ricayanzon opened this issue 7 months ago • 0 comments

A deep dive into TypeScript is obviously out of the scope of this book. Still, I think it might be better to use interface instead of type throughout the book, since you should always prefer interface to type:

  • https://stackoverflow.com/a/65948871/25729744
  • https://github.com/microsoft/TypeScript/wiki/Performance#preferring-interfaces-over-intersections

This way, the reader already gets used to use interface instead of type.

ricayanzon avatar Jul 14 '24 11:07 ricayanzon