auth0 / auth0-vue

Auth0 authentication SDK for Vue.js apps
Other
139 stars 26 forks source link

Use export type and import type to allow verbatimModuleSyntax #302

Closed DavidDeSloovere closed 12 months ago

DavidDeSloovere commented 12 months ago

Checklist

Describe the problem you'd like to have solved

Starting with Nuxt 3.8, verbatimModuleSyntax is enabled by default. This needs all types to be exported and imported with an explicit type.

https://nuxt.com/blog/v3-8#type-import-changes

One of the errors: image

Describe the ideal solution

I'm no Typescipt expert, but the new verbatimModuleSyntax option added in TS v5 seems to be preferred going forward.

Alternatives and current workarounds

Workaround is to disable verbatimModuleSyntax for now.

Additional context

No response

frederikprijck commented 12 months ago

Thanks, that makes sense. Will look into this.

DavidDeSloovere commented 12 months ago

That was fast! Already updated and it works as expected now. Thanks. 👍