Closed sangonzal closed 9 months ago
oh that's an interesting change, ill get on a fix ASAP.
Same issue here, thanks for looking into it, guys!
oh that's an interesting change, ill get on a fix ASAP.
If anyone is able to take a stab at converting the library from using an interface to a type that would be fantastic. I was, and still, unable to understand how ts-morph
works and having a tough time finding documentation on how to actually traverse types and interfaces with that library.
I made a PR here with an attempt to support both interfaces and type aliases https://github.com/FroggyPanda/better-supabase-types/pull/32
@kwbauson @FroggyPanda Thanks for fixing!
Do you have any plans for releasing a new version to npm?
I'm seeing the following issue when running
npx better-supabase-types -i types/supabase.ts -f
This seems to be happening because
npx supabase gen types
is now returning a type, and better-supabase-types is looking for an interface. As far as I can I haven't updated the supabase cli, so not sure why the sudden change, but perhaps better-supabase-types should support both?Here is the difference in types that is causing the issue: