prisma-kysely
prisma-kysely copied to clipboard
Support for exporting Kysely wrapped types
Close: https://github.com/valtyr/prisma-kysely/issues/81
Added exportWrappedTypes
option which enables exporting the Kysely wrapped types as described in the document.
This is awesome! I'm a bit afraid of having different naming standards based on an option, so I wonder if we should make this a breaking change instead (and bump the major version), use the 'Table' suffix on all table types, and just export these by default?
Thanks for reviewing! I will leave that decision to you. 🙉 (I think it makes sense in both cases.)
If you decide to make this a breaking change (i.e. remove exportWrappedTypes
), I can fix it that way in a couple of days.
Any news on this? I came to make a PR about this feature myself, it would be very convenient not having to Selectable<> prisma-kysely generated table types whenever we have to reference tables. Great library!
@valtyr any update?
This would be super helpful
+1
@valtyr just came across this, was resorting to use as unknown as Entity
. Any news? (Or a warning in docs for people who aren't used to Kysely)
👀