@types/better-sqlite3
Advanced tools
Comparing version 7.6.9 to 7.6.10
@@ -9,3 +9,3 @@ /// <reference types="node" /> | ||
declare namespace BetterSqlite3 { | ||
interface Statement<BindParameters extends unknown[]> { | ||
interface Statement<BindParameters extends unknown[], Result = unknown> { | ||
database: Database; | ||
@@ -18,5 +18,5 @@ source: string; | ||
run(...params: BindParameters): Database.RunResult; | ||
get(...params: BindParameters): unknown; | ||
all(...params: BindParameters): unknown[]; | ||
iterate(...params: BindParameters): IterableIterator<unknown>; | ||
get(...params: BindParameters): Result | undefined; | ||
all(...params: BindParameters): Result[]; | ||
iterate(...params: BindParameters): IterableIterator<Result>; | ||
pluck(toggleState?: boolean): this; | ||
@@ -61,5 +61,5 @@ expand(toggleState?: boolean): this; | ||
prepare<BindParameters extends unknown[] | {} = unknown[]>( | ||
prepare<BindParameters extends unknown[] | {} = unknown[], Result = unknown>( | ||
source: string, | ||
): BindParameters extends unknown[] ? Statement<BindParameters> : Statement<[BindParameters]>; | ||
): BindParameters extends unknown[] ? Statement<BindParameters, Result> : Statement<[BindParameters], Result>; | ||
transaction<F extends VariableArgFunction>(fn: F): Transaction<F>; | ||
@@ -145,5 +145,5 @@ exec(source: string): this; | ||
type SqliteError = typeof SqliteError; | ||
type Statement<BindParameters extends unknown[] | {} = unknown[]> = BindParameters extends unknown[] | ||
? BetterSqlite3.Statement<BindParameters> | ||
: BetterSqlite3.Statement<[BindParameters]>; | ||
type Statement<BindParameters extends unknown[] | {} = unknown[], Result = unknown> = BindParameters extends | ||
unknown[] ? BetterSqlite3.Statement<BindParameters, Result> | ||
: BetterSqlite3.Statement<[BindParameters], Result>; | ||
type ColumnDefinition = BetterSqlite3.ColumnDefinition; | ||
@@ -150,0 +150,0 @@ type Transaction<T extends VariableArgFunction = VariableArgFunction> = BetterSqlite3.Transaction<T>; |
{ | ||
"name": "@types/better-sqlite3", | ||
"version": "7.6.9", | ||
"version": "7.6.10", | ||
"description": "TypeScript definitions for better-sqlite3", | ||
@@ -42,2 +42,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/better-sqlite3", | ||
"url": "https://github.com/stamerf" | ||
}, | ||
{ | ||
"name": "Beeno Tung", | ||
"githubUsername": "beenotung", | ||
"url": "https://github.com/beenotung" | ||
} | ||
@@ -56,4 +61,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "cfd0bcce029d40822f2f648e46c914f3182908d27a64bbc6fb55339c44efd347", | ||
"typeScriptVersion": "4.6" | ||
"typesPublisherContentHash": "5572a46832f2ab58bf081881ab6e7aeb735cb91bd24f037553e1702754222b48", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,6 +11,6 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 Jan 2024 22:35:26 GMT | ||
* Last updated: Sun, 21 Apr 2024 16:06:52 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
# Credits | ||
These definitions were written by [Ben Davies](https://github.com/Morfent), [Mathew Rumsey](https://github.com/matrumz), [Santiago Aguilar](https://github.com/sant123), [Alessandro Vergani](https://github.com/loghorn), [Andrew Kaiser](https://github.com/andykais), [Mark Stewart](https://github.com/mrkstwrt), and [Florian Stamer](https://github.com/stamerf). | ||
These definitions were written by [Ben Davies](https://github.com/Morfent), [Mathew Rumsey](https://github.com/matrumz), [Santiago Aguilar](https://github.com/sant123), [Alessandro Vergani](https://github.com/loghorn), [Andrew Kaiser](https://github.com/andykais), [Mark Stewart](https://github.com/mrkstwrt), [Florian Stamer](https://github.com/stamerf), and [Beeno Tung](https://github.com/beenotung). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9388
211914