prisma-kysely icon indicating copy to clipboard operation
prisma-kysely copied to clipboard

Support for exporting Kysely wrapped types

Open taro-kayo opened this issue 1 year ago • 8 comments

Close: https://github.com/valtyr/prisma-kysely/issues/81

Added exportWrappedTypes option which enables exporting the Kysely wrapped types as described in the document.

taro-kayo avatar Oct 28 '23 08:10 taro-kayo

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?

valtyr avatar Nov 01 '23 10:11 valtyr

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.

taro-kayo avatar Nov 01 '23 10:11 taro-kayo

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!

serhankileci avatar Dec 27 '23 11:12 serhankileci

@valtyr any update?

anduong96 avatar Jan 07 '24 13:01 anduong96

This would be super helpful

JoseRoman avatar Jan 29 '24 03:01 JoseRoman

+1

coji avatar Mar 17 '24 11:03 coji

@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)

hyoretsu avatar Mar 27 '24 14:03 hyoretsu

👀

emilio-toledo avatar Aug 27 '24 07:08 emilio-toledo