Originally posted by **ameesme** November 22, 2022
We are using Supabase with a couple of RPCs and noticed that TypeScript return-types are defined as `Record[]` instead of the actual return-values described in the Postgres function-definition.
Is this expected behavior?
## Example
### Postgres Function
```sql
CREATE OR REPLACE FUNCTION public.job_get_recommendations(
skills bigint[],
weekly_hours integer,
location_geo json,
travel_distance_kilometers integer
) RETURNS TABLE(
id integer,
title character varying,
description character varying,
skills bigint[],
travel_distance_kilometers integer,
location_geo json,
score integer,
reason recommendation_reasons[]
)
```
### Generated Typescript-definition
```js
job_get_recommendations: {
Args: {
skills: unknown
weekly_hours: number
location_geo: Json
travel_distance_kilometers: number
}
Returns: Record[]
}
```
Discussed in https://github.com/supabase/supabase/discussions/10464