diff --git a/index.d.ts b/index.d.ts index 9a1642aa..eaf13986 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 // Mathew Rumsey @@ -55,7 +55,7 @@ declare namespace BetterSqlite3MultipleCiphers { } interface VirtualTableOptions { - rows: () => Generator; + rows: (...params: unknown[]) => Generator; columns: string[]; parameters?: string[] | undefined; safeIntegers?: boolean | undefined; @@ -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 | void; inverse?: ((total: T, dropped: T) => T) | undefined; result?: ((total: T) => unknown) | undefined; @@ -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;