0.13 breaking changes
michael-land opened this issue · comments
Upgrading from version 0.11 to 0.13 results in an error related to the PostgreSQL array type. Generated array type changed from T[]
to ArrayType<T>
code
export type ArrayType<T> = T extends ColumnType<infer S, infer I, infer U> ? ColumnType<S[], I[], U[]> : T[];
type X = 'A' | 'B';
type Xs = X[];
type Table = {
xs: ArrayType<X>;
};
const input: Insertable<Table> = {
xs: ['A', 'B'],
};
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Thanks for reporting! I'll jump on this immediately.
This feels like a TypeScript limitation, because I'm not sure why these behave differently...
Anyway, I'll find a solution. Be back soon.
Edit: Found a 3-day-old TypeScript issue about this: microsoft/TypeScript#57650
Released in 0.13.1
!