-
Notifications
You must be signed in to change notification settings - Fork 65
Hide top-level client properties (as they are visible via JS code intellisense) #421
Comments
I believe it's related to this bug in TypeScript Intellisense microsoft/TypeScript#34934 |
Right now it looks like the TypeScript team is aware of it, will work on it and will ship it for 3.9.0 April release. There is also the "real" |
Internal note: dropping from this sprint |
It looks like we'll be able to do it with # private feature in TypeScript 3.8 @timsuchanek 🎊 See details from https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-rc/
|
This was reverted because it messed up the the CI tests. |
This was fixed by the TypeScript team and will be released in 4.0 (August release) microsoft/TypeScript#34934 (comment) |
Closing as TypeScript 4 was released with the fix! |
There a plenty of
private
fields in thePrismaClient
class which are properly hidden when using TypeScript but are visible when a user is working with plain JS. I suggest we move all top-level properties/functions that are not intended for the user to a_
prefixed wrapper property.The text was updated successfully, but these errors were encountered: