-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
node:sqliteIssues related to the `node:sqlite` moduleIssues related to the `node:sqlite` moduletypesIssues related to TypeScript typesIssues related to TypeScript types
Description
Version: Deno 2.4.1
// iter.example.ts
import * as sql from "node:sqlite"
const db = new sql.DatabaseSync("./iter.example.sqlite3", {open: true, readOnly: false})
const st = db.prepare("select 1")
const iter = st.iterate()
for (const value of iter) {
console.log({value})
}
deno run -RW iter.example.ts
✅
deno run -RW --check iter.example.ts
❌
TS2339 [ERROR]: Property 'iterate' does not exist on type 'StatementSync'.
const iter = st.iterate()
~~~~~~~
at file:///C:/Users/codyc/code/sqlite-thing/iter.example.ts:5:17
error: Type checking failed.
Metadata
Metadata
Assignees
Labels
node:sqliteIssues related to the `node:sqlite` moduleIssues related to the `node:sqlite` moduletypesIssues related to TypeScript typesIssues related to TypeScript types