Trying to execute the command
typescript-json-schema --noExtraProps --required --refs false -o ./types.schema.json ./tsconfig.json *
using the typescript-json-schema npm package results in an error:
Error: Not supported: root type undefined
at JsonSchemaGenerator.getDefinitionForRootType (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:473:27)
at JsonSchemaGenerator.getTypeDefinition (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:1127:26)
at JsonSchemaGenerator.getDefinitionForRootType (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:560:53)
at JsonSchemaGenerator.getTypeDefinition (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:1127:26)
at JsonSchemaGenerator.getUnionDefinition (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:721:32)
at JsonSchemaGenerator.getTypeDefinition (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:1098:26)
at JsonSchemaGenerator.getDefinitionForProperty (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:594:31)
at\node_modules\typescript-json-schema\dist\typescript-json-schema.js:908:37
at Array.reduce (<anonymous>)
at JsonSchemaGenerator.getClassDefinition (\node_modules\typescript-json-schema\dist\typescript-json-schema.js:906:45)