nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

fix(types): add explicit types for composables & remove `baseUrl` from tsconfig #404

Closed th1m0 closed 2 months ago

th1m0 commented 2 months ago

Types of changes

Description

netlify[bot] commented 2 months ago

Deploy Preview for n3-supabase canceled.

Name Link
Latest commit c92697c528020c6d611491bd569bc9c804bdb6ee
Latest deploy log https://app.netlify.com/sites/n3-supabase/deploys/66d083a8124d810008b50b94
larbish commented 2 months ago

@th1m0 Do you have any idea on how to fix the ts error in both src/runtime/plugins/supabase.client.ts and src/runtime/plugins/auth-redirect.ts since the baseUrl was there to prevent this?

Errors happening on build => https://github.com/nuxt-modules/supabase/pull/404/files#file-src-runtime-plugins-auth-redirect-ts-L5

th1m0 commented 2 months ago

It seems the plugins require explicit type annotations. I will make a PR to update this.