typescript-json-schema icon indicating copy to clipboard operation
typescript-json-schema copied to clipboard

Get only exported symbols from main file

Open CauveryRaja25 opened this issue 1 year ago • 0 comments

getMainFileSymbols returns all available symbols within the file, including imported types. We need only the exported symbols. Is there any way to figure out, whether a symbol is exported or not ?

Usecase: We need to generate separate schema files for each exported symbol. Currently duplicate and unnecessary files are getting generated because of all these private symbols.

CauveryRaja25 avatar Apr 29 '24 12:04 CauveryRaja25