hyperweb-io / hyperweb-io/ts-codegen
Bug on interface `Omit<...>` generation
- Lenguaje dominante
- TypeScript
- Estrellas
- 126
- Forks
- 31
- Merge medio
- 19 min
- PR fusionados (30 d)
- 2
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100