Update typescript to 4.8.4
This commit is contained in:
parent
4c622b6f81
commit
e6ebfe4fca
15 changed files with 133 additions and 167 deletions
|
@ -355,7 +355,10 @@ type DatabaseQueryCache = Map<string, Statement<Array<unknown>>>;
|
|||
|
||||
const statementCache = new WeakMap<Database, DatabaseQueryCache>();
|
||||
|
||||
function prepare<T>(db: Database, query: string): Statement<T> {
|
||||
function prepare<T extends Array<unknown> | Record<string, unknown>>(
|
||||
db: Database,
|
||||
query: string
|
||||
): Statement<T> {
|
||||
let dbCache = statementCache.get(db);
|
||||
if (!dbCache) {
|
||||
dbCache = new Map();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue