supabase-community / nuxt-supabase

A supa simple wrapper around Supabase.js to enable usage within Nuxt.
https://supabase.io
MIT License
168 stars 17 forks source link

Typing doesn't work #8

Closed florian-lefebvre closed 3 years ago

florian-lefebvre commented 3 years ago

Bug report

Describe the bug

In VS Code, when hovering $supabase in this.$supabase, its type is any.

To Reproduce

  1. Use the snippet from the README example in VS Code
  2. Hover $supabase with your mouse

Expected behavior

$supabase should be typed.

Screenshots

image

System information

scottrobertson commented 3 years ago

This is to be expected until https://github.com/supabase/vue-supabase/pull/10 is merged :)

florian-lefebvre commented 3 years ago

Oh great!

florian-lefebvre commented 3 years ago

Do you know when it will be merged?

scottrobertson commented 3 years ago

Do you know when it will be merged?

Hopefully this weekend :) waiting on me to do a release right now once I get back to my Mac.

sduduzog commented 3 years ago

@scottrobertson I dug into this and seems like a fix for it can be released on its own, along with clearer examples in the readme including TS usage and also with the @nuxtjs/composition-api too

sduduzog commented 3 years ago

I'm working on it rn