mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
refactor(db-compare): type errors
This commit is contained in:
parent
9a18fea073
commit
2f208a8302
@ -51,8 +51,8 @@ async function getMap(db: Database, query: string, params: any[] = []) {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getFlattenedResults(db: Database, key: string, query: string, params: any[] = []) {
|
async function getFlattenedResults<T>(db: Database, key: string, query: string, params: any[] = []) {
|
||||||
const list = [];
|
const list: T[] = [];
|
||||||
const result = await getResults(db, query, params);
|
const result = await getResults(db, query, params);
|
||||||
|
|
||||||
for (const row of result) {
|
for (const row of result) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user