Consider making internal SDK components private #3598
Labels
needs:refinement
This issue needs to be refined/broken apart into sub-issues before implementation
never-stale
triage:accepted
This feature has been accepted
Milestone
Currently we export a lot of functions, types, objects, and classes from our core packages that we consider to be internal. This leads people to depend on these components which we do not recommend (example: https://github.com/prisma/prisma/blob/9c6e80e6fadc3068a54bc6cbff2edb218e88d345/packages/engine-core/src/tracing/createSpan.ts). As much as possible we should encourage users to use the API interfaces only.
This could be done by making them private, making the constructors private, or making all properties not included in the interface private (maybe there is some way to exclude some properties from the published types while keeping them internally?)
non-exhaustive list:
core
packageTODO:
The text was updated successfully, but these errors were encountered: