Skip to content

Conversation

mandarini
Copy link
Contributor

Moved from: supabase/realtime-js#459
Author: @kakeluh

What kind of change does this PR introduce?

infer payload type sent by realtime.broadcast_changes

What is the current behavior?

  on<{ record: Tables<"todos"> }>("broadcast", { event: "INSERT" }, ({ payload: { record } }) => {})

What is the new behavior?

  on<Tables<"todos">>("broadcast", { event: "INSERT" }, ({ payload: { record } }) => {})

Additional context

@mandarini mandarini requested review from a team as code owners October 8, 2025 13:44
@mandarini mandarini added the realtime-js Related to the realtime-js library. label Oct 8, 2025
@coveralls
Copy link

coveralls commented Oct 8, 2025

Coverage Status

coverage: 95.455% (+13.0%) from 82.5%
when pulling 42426b5 on chore/realtime-channel-type
into 2d0bd77 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realtime-js Related to the realtime-js library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants