Typescript return type for Functions
I really appreciate the
Where I'm specifying the return is
I can manually update the file, sure, but it is auto-generated, so I'd rather not. And yes, I could also build a bash script that will generate the types and then mutate them at the end, but I'd rather not.
supabase gen types typescript utility in the CLI tool. One thing I can't get to work is when I define Postgres Functions, it won't determine the return type based on the the function. For example, given this functionWhere I'm specifying the return is
setof shifts which is a table in my schema. The generated type for this isI can manually update the file, sure, but it is auto-generated, so I'd rather not. And yes, I could also build a bash script that will generate the types and then mutate them at the end, but I'd rather not.