-
Notifications
You must be signed in to change notification settings - Fork 294
Open
Description
Describe the bug
When ts types are generated for a view that has a column which type is not recognized by typescript, it sets the type to unknown, but since it is a view, because of the error mentioned in #577, all types have a union applied with null, and results into a type unknown | null
, which throws the following eslint error:
488:26 error 'unknown' overrides all other types in this union type @typescript-eslint/no-redundant-type-constituents
To Reproduce
Steps to reproduce the behavior:
- In a project, create a view with a column which type is not recognized by typescript, for instance, a geolocation column.
- Generate types for that project with the cli, in a typescript+eslint project
- Go to that view, to the Row type
- Check the error
Expected behavior
Only unknown type with no union.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
If applicable, add any other context about the problem here.
- "eslint": "^9.36.0",
- "typescript": "^5.9.3",
- "typescript-eslint": "^8.45.0"
Metadata
Metadata
Assignees
Labels
No labels