acacode / acacode/swagger-typescript-api

Generate an index file when using modular mode

Open
#523 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

I want to use Modular mode, but it doesn't generate an index file to mass-export stuff.
Rather than being able to do `import { Thing, ThingDto } from 'api';`, I'm forced to use multiple import statements, `import { Thing } from 'api/Thing'; import { ThingDto } from 'api/data-contracts';`

Is it possible to have this generate an `index.ts` file? If not a cli argument, then is it possible to have the modular templates generate a single extra file, such that each module can write to it once?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.