Skip to content

Commit b211ea0

Browse files
authored
Fix DOQB constructor parameter type (#128)
1 parent cc6fce4 commit b211ea0

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
publish:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-node@v5
1515
with:
1616
node-version: 22.x
1717
cache: 'npm'

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
matrix:
1313
os:
1414
- ubuntu-latest
15-
node: [18.x, 20.x, 22.x]
15+
node: [20.x, 22.x]
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919
- name: Set up Node.js
20-
uses: actions/setup-node@v4
20+
uses: actions/setup-node@v5
2121
with:
2222
node-version: ${{ matrix.node }}
2323
- name: Install modules

src/databases/do.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ import { syncLoggerWrapper } from '../logger'
55
import { MigrationOptions, syncMigrationsBuilder } from '../migrations'
66
import { Query } from '../tools'
77

8+
export interface SqlStorage {
9+
exec: any
10+
prepare: any
11+
Cursor: any
12+
Statement: any
13+
}
14+
815
export class DOQB extends QueryBuilder<{}, false> {
9-
public db: any
16+
public db: SqlStorage
1017
loggerWrapper = syncLoggerWrapper
1118

12-
constructor(db: any, options?: QueryBuilderOptions<false>) {
19+
constructor(db: SqlStorage, options?: QueryBuilderOptions<false>) {
1320
super(options)
1421
this.db = db
1522
}

0 commit comments

Comments
 (0)