© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
user8923

Help me figure out supabase-js v2 realtime with Typescript

I'm trying to follow the examples in the docs on how to set up realtime with V2. My eslint config disallows the use of the
any
any
type. What is the type of the
payload
payload
arg in the example below?

supabase
  .channel("*")
  .on("postgres_changes", { event: "*", schema: "*" }, payload =>
  {
    console.log("Change received!", payload);
  })
  .subscribe();
supabase
  .channel("*")
  .on("postgres_changes", { event: "*", schema: "*" }, payload =>
  {
    console.log("Change received!", payload);
  })
  .subscribe();
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

supabase-js v2 runtime error with SvelteKit
SupabaseSSupabase / help-and-questions
4y ago
Next.js and Supabase v2
SupabaseSSupabase / help-and-questions
4y ago
realtime with v2 not working
SupabaseSSupabase / help-and-questions
4y ago
Supabase JS help
SupabaseSSupabase / help-and-questions
4y ago