Open slaesh opened 2 years ago
exported types should be improved and enriched
@slaesh absolutely agree with you.
We're planning some big changes to this client lib and will improve the types. Will incorporate some of the feedback you've given here.
@slaesh don't want you to think we've forgotten about this. We'll be working on types in the next few weeks. Apologies on the delay!
Feature request
I have no clue what's the current state of this lib, maybe this would come later on.. But the exported types should be improved and enriched.
For example:
Currently the interface for the RealtimeChannel's
on
call could be easily improved.https://github.com/supabase/realtime-js/blob/05d098c228d4303151d58448bf3e05cfb1c77225/src/RealtimeChannel.ts#L125
Instead of
we should go with this:
Function
.. What about making it typed instead? =)