Package Exports
- @startupjs/babel-plugin-ts-to-json-schema
- @startupjs/babel-plugin-ts-to-json-schema/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@startupjs/babel-plugin-ts-to-json-schema) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@startupjs/babel-plugin-ts-to-json-schema
Transform TypeScript interface to JSON Schema to be used in Docs.
Usage
When using as part of 'babel-preset-startupjs', enable this plugin by passing the option docgen: true:
presets: [
['babel-preset-startupjs', { docgen: true }]
]Options
// defaults
{
magicExportName: '_PropsJsonSchema',
interfaceMatch: 'export interface'
}License
MIT