Closed Coteh closed 4 years ago
Can you check if the error persists with https://github.com/dyedgreen/deno-sqlite/pull/57
Just checked out #57 branch, subbed out open
and save
with new DB
and db.close()
respectively (due to API changes in that PR) and looks like no TypeScript error present. Feel free to close. :)
Great! (Btw, you don't need to explicitly close to safe the changes to disk, the new branch will commit the changes as you run the queries, like you'd expect from a regular SQLite 😄)
Description
Originally filed as PR #56 since I mistakenly assumed that the
query
method won't accept just one argument, but this is not the case. Seems like this is an error with the typing definition for this method.Expected Behaviour
When I call
query
method with just the query string, there should be no TypeScript error.Actual Behaviour
However, if you execute it with
deno run
it'll still compile and run successfully.Reproduction Steps
Open up Visual Studio Code in a new folder, create a TypeScript file (doesn't matter the name). Simply copy and paste the README example into it. :)
Also have the Deno VS Code extension installed and ensure it's enabled on your project by putting this in either workspace or user
settings.json
: