Skip to content

Commit

Permalink
Update type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Sep 2, 2024
1 parent 6f93de9 commit 903b3e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for better-sqlite3-multiple-ciphers 8.5.0
// Type definitions for better-sqlite3-multiple-ciphers 11.2.1
// Project: https://github.com/m4heshd/better-sqlite3-multiple-ciphers
// Definitions by: Ben Davies <https://github.com/Morfent>
// Mathew Rumsey <https://github.com/matrumz>
Expand Down Expand Up @@ -55,7 +55,7 @@ declare namespace BetterSqlite3MultipleCiphers {
}

interface VirtualTableOptions {
rows: () => Generator;
rows: (...params: unknown[]) => Generator;
columns: string[];
parameters?: string[] | undefined;
safeIntegers?: boolean | undefined;
Expand Down Expand Up @@ -83,6 +83,7 @@ declare namespace BetterSqlite3MultipleCiphers {
name: string,
options: Database.RegistrationOptions & {
start?: T | (() => T);
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
step: (total: T, next: ElementOf<T>) => T | void;
inverse?: ((total: T, dropped: T) => T) | undefined;
result?: ((total: T) => unknown) | undefined;
Expand All @@ -98,8 +99,8 @@ declare namespace BetterSqlite3MultipleCiphers {
}

interface DatabaseConstructor {
new(filename: string | Buffer, options?: Database.Options): Database;
(filename: string, options?: Database.Options): Database;
new(filename?: string | Buffer, options?: Database.Options): Database;
(filename?: string, options?: Database.Options): Database;
prototype: Database;

SqliteError: typeof SqliteError;
Expand Down

0 comments on commit 903b3e0

Please sign in to comment.