Closed nooblyf closed 3 months ago
Thanks for letting us know. We (and drizzle) are investigating.
@jawj any news on this? I just got started with drizzle and got stuck with this.
Downgrading to "drizzle-orm": "^0.28.6"
solved the issue for me.
Sorry for the delay. The drizzle guys say they hope to fix it this weekend.
Adding NeonQueryFunction<boolean, boolean>
to sql seems to fix the typescript error.
import { neon } from "@neondatabase/serverless";
import type { NeonQueryFunction } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
const sql: NeonQueryFunction<boolean, boolean> = neon(DATABASE_URL);
export const DB = drizzle(sql);
I'm told that drizzle 0.30.3 fixes this problem. I'll close this issue if someone can confirm.
Sorry again that this has taken a while.
I can confirm this is fixed in "drizzle-orm": "0.30.3"
Many thanks.
Steps to reproduce
Set
strict
in tsconfig totrue
Connect
Expected result
No TS error
Actual result
TS error:
Environment
typescript v5.3.3 @sveltejs/kit v2.5.2 node v20.10.0 pnpm 8.11.0
Logs, links