cpsoinos / nuxt-svgo

SVGO loader for Nuxt
MIT License
151 stars 13 forks source link

No intellisense for module options in nuxt.config #264

Closed dsvgl closed 6 months ago

dsvgl commented 7 months ago

Inside nuxt.config.ts, when I start typing sv my IDE (VS Code) correctly suggest svgo?. But inside this config object I then get no intellisense.

Maybe it's because of the way you typed the nuxt module in https://github.com/cpsoinos/nuxt-svgo/blob/main/src/module.ts#L55 ?

const nuxtSvgo: NuxtModule<ModuleOptions> = defineNuxtModule({...});

I think it should rather be

export default defineNuxtModule<ModuleOptions>({...});
jd1378 commented 6 months ago

Should be fixed in v4.0.1

dsvgl commented 6 months ago

thx!