bun icon indicating copy to clipboard operation
bun copied to clipboard

Update sqlite.d.ts

Open huseeiin opened this issue 7 months ago • 0 comments

somewhat of a breaking change

put the ReturnType last and make it optional for compatibility with better-sqlite3 and to make it easier to insert something when returning is not needed:

db.prepare<string>("INSERT INTO ids (id) values (?)").run(crypto.randomUUID());

What does this PR do?

  • [ ] Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • [ ] Code changes

How did you verify your code works?

huseeiin avatar Jun 29 '24 10:06 huseeiin