auth0 / auth0-vue

Auth0 authentication SDK for Vue.js apps
Other
140 stars 27 forks source link

Use export type and import type to allow verbatimModuleSyntax #302

Closed DavidDeSloovere closed 1 year ago

DavidDeSloovere commented 1 year 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 1 year ago

Thanks, that makes sense. Will look into this.

DavidDeSloovere commented 1 year ago

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