build: perform TypeCheck for all packages (#2573)

Co-authored-by: himself65 <himself65@outlook.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
LongYinan
2023-05-31 20:49:56 +08:00
committed by GitHub
parent 78410f531a
commit 1ea445ab15
81 changed files with 434 additions and 241 deletions

View File

@@ -44,9 +44,9 @@ export abstract class BaseSQLiteAdapter {
}
// todo: what if SQLite DB wrapper later is not sync?
connect() {
connect(): Database | undefined {
if (this.db) {
return;
return this.db;
}
logger.log(`[SQLiteAdapter][${this.role}] open db`, this.path);
const db = (this.db = sqlite(this.path));