tusken icon indicating copy to clipboard operation
tusken copied to clipboard

Give `json_agg` a type parameter to be used when input type is known

Open aleclarson opened this issue 3 years ago • 0 comments

This will require the t.json and t.jsonb types to have a type parameter that can narrow the Json type that is used by default in TypeScript result sets.

<T extends t.anyelement>(arg: ColumnRef<T>): Aggregate<T extends t.json ? t.json : t.json<T>>

aleclarson avatar Sep 05 '22 14:09 aleclarson