getting-things-done-in-next-js
getting-things-done-in-next-js copied to clipboard
TypeScript Type/Interface
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
.