UNPKG

@protocolnebula/ts-openapi-generator

Version:

Build API and models from Swagger/OpenAPI to use in any project type

20 lines (18 loc) 390 B
module.exports = { // Templates file apiFile: 'api.ts', modelFile: 'model.ts', enumModelFile: 'enumModel.ts', // Types mapping from 'OpenAPI' to the language template typesMapped: { default: 'any', empty: 'void', array: 'any[]', boolean: 'boolean', file: 'File', integer: 'number', number: 'number', object: 'any', string: 'string', }, };