Open VinceBT-BG opened 11 months ago
What version of this package are you using? 2.6.0
What operating system, Node.js, and npm version? MacOS, Node 19.16, PNPM 8.7.4
What happened? I use // @ts-check in all my .js files to have a better DX but it seems like the import is not considered as a function:
// @ts-check
.js
What did you expect to happen? No errors, since in the source code, the function takes a NextConfig and returns a NextConfig
NextConfig
Are you willing to submit a pull request to fix this bug? Yes, but I don't have a clue what's happening
Which version of typescript do you have? This started appearing when I did "typescript": "5.3.3" -> "typescript": "5.4.5" switch
"typescript": "5.3.3"
"typescript": "5.4.5"
What version of this package are you using? 2.6.0
What operating system, Node.js, and npm version? MacOS, Node 19.16, PNPM 8.7.4
What happened? I use
// @ts-check
in all my.js
files to have a better DX but it seems like the import is not considered as a function:What did you expect to happen? No errors, since in the source code, the function takes a
NextConfig
and returns aNextConfig
Are you willing to submit a pull request to fix this bug? Yes, but I don't have a clue what's happening