hyperweb-io / hyperweb-io/ts-codegen
Bug on interface `Omit<...>` generation
Aperta
- Lingua principale
- TypeScript
- Stelle
- 126
- Fork
- 31
- Merge medio
- 19m
- PR unite (30g)
- 2
Descrizione
Here's a small example on v4 that happens when generating the queries:
Current:
```typescript
export interface FactoryReactQuery {
client: FactoryQueryClient | undefined;
options?: Omit, "'queryKey' | 'queryFn' | 'initialData'"> & {
initialData?: undefined;
};
}
```
Expected:
```typescript
options?: Omit, "queryKey" | "queryFn" | "initialData"> & {
```
The omit syntax is incorrect because it is treating `"'queryKey' | 'queryFn' | 'initialData'"` as a single property.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.