Closed joeldomke closed 1 year ago
I have a SQL function that returns a boolean and Supabase CLI generates the TypeScript types as expected:
Functions: { some_function: { Args: Record<PropertyKey, never>; Returns: boolean; }; }
But when I call the function, data has the type boolean[] | null, while I would expect boolean | null.
data
boolean[] | null
boolean | null
const { data } = supabaseClient.rpc('some_function')
:tada: This issue has been resolved in version 1.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Bug report
I have a SQL function that returns a boolean and Supabase CLI generates the TypeScript types as expected:
But when I call the function,
data
has the typeboolean[] | null
, while I would expectboolean | null
.