hyperweb-io / hyperweb-io/ts-codegen
Bug on interface `Omit<...>` generation
Open
- Dominant language
- TypeScript
- Stars
- 126
- Forks
- 31
- Avg merge
- 19m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.