typescript-json-schema
typescript-json-schema copied to clipboard
the file with subffix of '.d.ts' will be transformed to empty
In programmatic use, the file with subffix of '.d.ts' will be transformed to empty, while it did well with cli command. Why?
Thanks for the report. Can you provide a minimal reproducible example that demonstrates the issue?
Thanks for the report. Can you provide a minimal reproducible example that demonstrates the issue?
check and try https://github.com/michael8512/ts-json-test.git
I'd recommend using a tsconfig.json
. And also try https://github.com/vega/ts-json-schema-generator.
Happening to me as well. When I profile getProgramFromFiles file with .d.ts extension it gives back empty definitions. As soon as I change back to simple .ts file it works fine.