Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sqlite.d.ts #12248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update sqlite.d.ts #12248

wants to merge 1 commit into from

Conversation

huseeiin
Copy link
Contributor

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?

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: ```ts db.prepare<string>("INSERT INTO ids (id) values (?)").run(crypto.randomUUID()); ```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant