hyperweb-io / hyperweb-io/ts-codegen
Bug on interface `Omit<...>` generation
- Vorherrschende Sprache
- TypeScript
- Sterne
- 126
- Forks
- 31
- Ø Merge
- 19 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Reproduce the v4 query generation with the TypeScript example in the issue, then trace the generator entry point that emits the FactoryReactQuery options type. Compare the generated Omit expression with the expected output; done means each omitted property is emitted as a separate quoted union member.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 55/100