Support project-only exports #58891
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
project only exports isolated declarations
β Viability Checklist
β Suggestion
Introduce a keyword/syntax for declaring that an export should only be visible to other files within the same project. Ideally this would also cause the export to be elided from declaration emit which would also allow it to be exempt from the requirements of isolated declarations.
π Motivating Example
Use cases:
π» Use Cases
class
and make themprivate
. Other files in the project can access theprivate
member viaindex['_notation']
. Other projects can still technically access the members but they will be typed asany
.The text was updated successfully, but these errors were encountered: