Skip to content

Commit

Permalink
docs: sync Statement.all and Statement.get docs with types (#13544)
Browse files Browse the repository at this point in the history
  • Loading branch information
17hz authored Aug 27, 2024
1 parent bab5fec commit 36c621b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/bun-types/sqlite.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ declare module "bun:sqlite" {
* // => [{bar: "baz"}]
*
* stmt.all();
* // => [{bar: "baz"}]
* // => []
*
* stmt.all("foo");
* // => [{bar: "foo"}]
Expand All @@ -555,14 +555,14 @@ declare module "bun:sqlite" {
* ```ts
* const stmt = db.prepare("SELECT * FROM foo WHERE bar = ?");
*
* stmt.all("baz");
* // => [{bar: "baz"}]
* stmt.get("baz");
* // => {bar: "baz"}
*
* stmt.all();
* // => [{bar: "baz"}]
* stmt.get();
* // => null
*
* stmt.all("foo");
* // => [{bar: "foo"}]
* stmt.get("foo");
* // => {bar: "foo"}
* ```
*
* The following types can be used when binding parameters:
Expand Down

0 comments on commit 36c621b

Please sign in to comment.