From 36c621b6b1a9524b7d3ed984feed41183aae9bce Mon Sep 17 00:00:00 2001 From: Pocky <0x149527@gmail.com> Date: Tue, 27 Aug 2024 09:30:22 +0800 Subject: [PATCH] docs: sync Statement.all and Statement.get docs with types (#13544) --- packages/bun-types/sqlite.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/bun-types/sqlite.d.ts b/packages/bun-types/sqlite.d.ts index 278822e53bd161..6b6d13d4223a93 100644 --- a/packages/bun-types/sqlite.d.ts +++ b/packages/bun-types/sqlite.d.ts @@ -536,7 +536,7 @@ declare module "bun:sqlite" { * // => [{bar: "baz"}] * * stmt.all(); - * // => [{bar: "baz"}] + * // => [] * * stmt.all("foo"); * // => [{bar: "foo"}] @@ -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: