Closed wesleycoder closed 7 months ago
Astro v4.5.5 Node v18.18.0 System Linux (x64) Package Manager npm Output static Adapter none Integrations astro:db @astrojs/db/file-url
No response
When using db.batch TS complains about types for the batch items array. See the minimal reproduction example (specifically the seed.ts file)
db.batch
When passing an array with batch items to db.batch the types should be inferred correctly.
https://stackblitz.com/edit/withastro-astro-iidzgz
Upstream issue: https://github.com/drizzle-team/drizzle-orm/issues/1301
Thanks, I'll be following that issue. :)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using
db.batch
TS complains about types for the batch items array. See the minimal reproduction example (specifically the seed.ts file)What's the expected result?
When passing an array with batch items to
db.batch
the types should be inferred correctly.Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-iidzgz
Participation