You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we change/add another field (bar) in the transform callback and then pick it - Nuxt will show us TS error (nuxi typecheck) but works correctly in runtime:
Type '"bar"' is not assignable to type'"id" | "foo"'.
Expected:
correct types when use pick and transform together
do not allow to use pick and transform together
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
https://stackblitz.com/edit/github-udceba?file=app.vue
Describe the bug
If we change/add another field (
bar
) in thetransform
callback and thenpick
it - Nuxt will show us TS error (nuxi typecheck
) but works correctly in runtime:Expected:
pick
andtransform
togetherpick
andtransform
togetherAdditional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: