supabase / supabase-js

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.
https://supabase.com
MIT License
2.83k stars 219 forks source link

fix: Use explicit return type for from/schema/rpc #975

Closed kamilogorek closed 2 months ago

kamilogorek commented 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

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 7892003467

Details


Totals Coverage Status
Change from base Build 7887450042: 0.0%
Covered Lines: 89
Relevant Lines: 116

💛 - Coveralls