TypeScript d.ts file generator from JSON Schema or OpenAPI spec files. Current stable version: 3.19.2. Released as needed; follows semver. Key differentiator: supports both JSON Schema and OpenAPI (Swagger) specs, generates TypeScript type definitions directly, includes plugin support for customization, and uses TypeScript AST internally for robust output. Requires Node >= 18.0.
npm install dtsgeneratorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates TypeScript type definitions from a JSON Schema using the Node.js API.
Use the @dtsgenerator/replace-namespace plugin to handle namespaces.
Update CLI usage; see migration guide.
Ensure compatibility with the new internal AST; plugins must adhere to new API.
Upgrade Node.js to version 18 or higher.
Use import syntax or configure your project for ESM.
Run `npm install dtsgenerator` or `npm install -g dtsgenerator`.
Use `import dtsgenerator from 'dtsgenerator'`.
Switch to ESM imports or use dynamic import: `const dtsgenerator = await import('dtsgenerator')`.No dependency data recorded yet.