app-wrappers.d.ts wrong generic types #17743
Labels
area/cli
area/typescript
bug/2-confirmed
We have reproduce the problem and confirmed that this is a bug.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
After the update to app-webpack 4.0.5 I got errors in my boot files regarding the type of the params being of type
any
.The problem is the types in
app-wrappers.d.ts
The BootCallback is defined non-generic in boot.d.ts, but is being used as a generic Type in app-wrappers.d.ts
The same goes for
PrefetchCallback
andRouteCallback
Or am I missing something?
What did you expect to happen?
Types to be correct.
Reproduction URL
https://stackblitz.com/edit/quasarframework-stackblitz-templates-zpvg52k3?file=src%2Fboot%2Ftest.ts
How to reproduce?
Wait until loading finishes, then hover over params in
src/boot/test.ts
.It shows the error
Parameter 'params' implicitly has an 'any' type.
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: