Reproduction repo for ts-safeql/safeql#204
- Start database:
docker compose up -d
-
"Fix" the problem by using
sql<{ id: number; name: string | null; bossName: string; }[]>
inmain.ts
. -
Run ESLINT
npx eslint .
- See wrong output:
10:5 error Query has incorrect type annotation.
Expected: { id: number; name: string | null; bossName: string }[]
Actual: { id: number | null; name: string | null; bossName: string | null }[] @ts-safeql/check-sql
-
run
--fix
-
ts-safeql generates wrong types