An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
2.83k
stars
219
forks
source link
fix: Use explicit return type for from/schema/rpc #975
Closed
kamilogorek closed 2 months ago
Use
ReturnType
as we implement those methods as a pass-through. Tbh why this isn't inferred correctly by TypeScript is beyond me...Verified on our own API repository this time to make sure it works correctly for all cases.
Fixes https://github.com/supabase/supabase-js/issues/974 Fixes https://github.com/supabase/supabase-js/pull/973#issuecomment-1942141729