valtyr/prisma-kysely

Incorrect types generated for array fields

Closed this issue · 1 comments

Given the following prisma schema model field:

  foo               Bar[] @default([])

it generates the following kysely types

  foo: Generated<Bar>[];

we expected

  foo: Generated<Bar[]>;
valtyr commented

Ah nice catch! I'll look into this as soon as I can.