acacode / acacode/swagger-typescript-api
Option to generate types instead of interfaces
- Lingua principale
- TypeScript
- Stelle
- 4.1k
- Fork
- 436
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi!
Is it possible to add an option to generate
```
export type User = {
username?: string;
uuid?: string;
}
```
instead of
```
export interface User {
username?: string;
uuid?: string;
}
```
Sometimes it is necessary to prevent possible expansion of the type. Use case [here](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEAzArgOzAFwJYHtVNQEFUBPAeQCMArcDABVigFsAKRHHALngCVwcYwADwBnDDCyoA5gBp4aANaocAd1QA+AJTcAbjizAA3AChjGEgAcEAVREgY8ALzwA3sfjy7MVMxAB+bjEJaRMPZGQDAPggySkTAF9TSQx7RCgwBABJW3tXd097HyZ-QPFY0PkI4CiYkONE4wgQDHgoUm42khNEIlJKGkwGGGYWTtaReByYTUN4AHo5+HMreABaeBwFYx7icmpaIZGxqAnsrxn5xeTU9IR1tKwIbd69gfpGVhd4ADpf49OpvB4hcFvBrjA0hk1mCmBZhpgsGAoBB4CoBApYDg0MBjEA)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.