Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Hide top-level client properties (as they are visible via JS code intellisense) #421

Closed
@schickling

Description

@schickling

There a plenty of private fields in the PrismaClient 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.

image

image

Metadata

Metadata

Labels

kind/improvementAn improvement to existing feature and code.tech/typescriptIssue for tech TypeScript.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions