YousefED / typescript-json-schema

Generate json-schema from your Typescript sources
BSD 3-Clause "New" or "Revised" License
3.17k stars 323 forks source link

Get only exported symbols from main file #598

Open CauveryRaja25 opened 7 months ago

CauveryRaja25 commented 7 months ago

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.