© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago
Osama Akhtar

Best TypeScript DX for Supabase Edge Functions

supabase devs, what's the best DX when working with edge functions? i'd love to be able to automatically infer the payload and response types of a supabase functions when using
functions.invoke
functions.invoke
. the current type generator doesn't support this, which is a huge feature request I have. so does anyone have a solid workflow?

right now, if i use zod schemas inside the function file and
z.infer
z.infer
to determine the typescript type, if i import this type in my nextjs app, it would be
any
any
, because the package manager doesn't recognize the zod import within the edge fn.

would love ur thoughts and suggestions
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

Best practises for supabase edge functions?
SupabaseSSupabase / help-and-questions
4mo ago
Supabase Edge Functions authentication
SupabaseSSupabase / help-and-questions
2w ago
Edge functions supabase error
SupabaseSSupabase / help-and-questions
5mo ago
Does Supabase Cache responses for Edge Functions?
SupabaseSSupabase / help-and-questions
4mo ago