acacode / acacode/swagger-typescript-api
Destructuring assignment in the parameter list
- Lingua principale
- TypeScript
- Stelle
- 4.1k
- Fork
- 436
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi currently I'm using react-query mutation
How can I turn this
```typescript
reportGetNoLawyersPerDay = (
query?: {
/** @format date-time */
TimeFrom?: string;
/** @format date-time */
TimeTo?: string;
},
params: RequestParams = {}
);
```
into this
```typescript
reportGetNoLawyersPerDay = ({
query,
params = {}
}: {
query?: {
/** @format date-time */
TimeFrom?: string;
/** @format date-time */
TimeTo?: string;
};
params?: RequestParams;
});
```
because I wanna use only one parameter for that function, is there any option for this?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.