Description and expected behavior
A clear and concise description of what the bug is and what's the expected behavior.
Screenshots
Unknown type:

The hook:

Error:

If I switch to a ternary style, it still complains:

Environment (please complete the following information):
- ZenStack version: [e.g., 1.0.0-alpha.50]
"@zenstackhq/runtime": "^1.9.0",
"@zenstackhq/server": "^1.9.0",
"@zenstackhq/tanstack-query": "^1.9.0",
"zenstack": "1.9.0"
- Prisma version:
"^5.10.2"
- Database type: Postgresql
Additional context