Skip to content

Commit

Permalink
fix(deps): ts5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jun 20, 2024
1 parent dcd5066 commit 68d0d11
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 436 deletions.
2 changes: 1 addition & 1 deletion src/adapter/inmemory/inMemory.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class InMemoryDB implements CommonDB {
): Promise<number> {
const table = this.cfg.tablesPrefix + q.table
if (!this.data[table]) return 0
const ids = queryInMemory(q, Object.values(this.data[table]!) as ROW[]).map(r => r.id)
const ids = queryInMemory(q, Object.values(this.data[table]) as ROW[]).map(r => r.id)
return await this.deleteByIds(q.table, ids)
}

Expand Down
2 changes: 1 addition & 1 deletion src/adapter/inmemory/inMemoryKeyValueDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ export class InMemoryKeyValueDB implements CommonKeyValueDB {

async count(table: string): Promise<number> {
this.data[table] ||= {}
return Object.keys(this.data[table]!).length
return Object.keys(this.data[table]).length
}
}
4 changes: 1 addition & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"extends": "@naturalcycles/dev-lib/cfg/tsconfig.json",
"compilerOptions": {
"outDir": "dist",
},
"compilerOptions": {},
"include": ["src"],
"exclude": ["**/__exclude"],
}
Loading

0 comments on commit 68d0d11

Please sign in to comment.