From 234b356972b5903f8d8cf01ae151dcfa2c96eb9f Mon Sep 17 00:00:00 2001 From: Dallas Hoffman Date: Sun, 7 Dec 2025 01:04:58 -0500 Subject: [PATCH] Add bigint-returning signature to Database.changes type --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b99658c..73ac1f6 100644 --- a/index.d.ts +++ b/index.d.ts @@ -937,7 +937,8 @@ declare class Database { * `sqlite3_total_changes64()`, which will trigger an exception if this build * does not have `BigInt` support enabled. */ - changes(total?: boolean, sixtyFour?: boolean): number; + changes(total: boolean, sixtyFour: true): bigint; + changes(total?: boolean, sixtyFour?: false): number; /** * Returns the filename associated with the given database name. Defaults to