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 I understand well what's going on, when using typescript.strict: true in nuxt.config.ts, TS raises an error because all three experimental options are set to "required" instead of optional.
in nuxt.config.ts :
content: {experimental: {clientDB: true},}
The error :
Type '{ clientDB: true; }' is missing the following properties from type '{ clientDB: boolean; stripQueryParameters: boolean; advanceQuery: boolean; }': stripQueryParameters, advanceQuery
Environment
Darwin
v19.6.0
3.8.0
3.9.1
2.7.0
npm@9.4.0
-
app
,typescript
,ssr
,vue
,hooks
,modules
,runtimeConfig
,content
,supabase
@nuxt/ui@2.9.0-28296655.4a18ff1
,@nuxtjs/supabase@1.1.3
,@vueuse/nuxt@10.5.0
,@nuxt/content@2.8.5
,@pinia/nuxt@0.5.1
-
Reproduction
I opened a PR : #2391
If I understand well what's going on, when using
typescript.strict: true
innuxt.config.ts
, TS raises an error because all three experimental options are set to "required" instead of optional.in
nuxt.config.ts
:The error :
Type '{ clientDB: true; }' is missing the following properties from type '{ clientDB: boolean; stripQueryParameters: boolean; advanceQuery: boolean; }': stripQueryParameters, advanceQuery
Describe the bug
Here is a part of the
src/module.ts
file :and I propose to modify like this, so no TS warning anymore :
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: