cyrilwanner / next-optimized-images

🌅 next-optimized-images automatically optimizes images used in next.js projects (jpeg, png, svg, webp and gif).
MIT License
2.21k stars 93 forks source link

Fix TypeScript Setup Instructions #261

Open Dalimil opened 2 years ago

Dalimil commented 2 years ago

The setup instructions for TypeScript contained an error because of a suggested antipattern (https://nextjs.org/docs/basic-features/typescript) the type must be added to a separate file, otherwise it will keep getting overwritten.