File tree Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export const createBridge = (postgres: typeof Postgres) => {
80
80
} ,
81
81
off : connectionEvents . off . bind ( connectionEvents ) ,
82
82
on : connectionEvents . on . bind ( connectionEvents ) ,
83
- query : async ( sql : string , parameters ) : Promise < QueryResult > => {
83
+ query : async ( sql : string , parameters : Parameters < typeof connection . unsafe > [ 1 ] ) : Promise < QueryResult > => {
84
84
// https://github.com/porsager/postgres#result-array
85
85
const resultArray = await connection . unsafe ( sql , parameters ) ;
86
86
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
2
import {
3
3
Pool as PgPool ,
4
+ // @ts -expect-error-next-line pg types not available
4
5
} from 'pg' ;
5
6
import postgres from 'postgres' ;
6
7
import * as sinon from 'sinon' ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "allowSyntheticDefaultImports " : true ,
3
+ "declaration " : true ,
4
4
"esModuleInterop" : true ,
5
+ "lib" : [
6
+ " es2020"
7
+ ],
5
8
"module" : " commonjs" ,
6
- "declaration" : true ,
7
- "moduleResolution" : " node" ,
8
- "noImplicitAny" : false ,
9
- "noImplicitReturns" : true ,
10
- "noUnusedLocals" : true ,
11
- "noUnusedParameters" : false ,
12
- "outDir" : " dist" ,
13
- "resolveJsonModule" : true ,
14
- "skipLibCheck" : true ,
9
+ "noEmit" : true ,
10
+ "rootDir" : " ." ,
11
+ "sourceMap" : true ,
15
12
"strict" : true ,
16
13
"target" : " es2018" ,
17
14
"useUnknownInCatchVariables" : false
18
15
},
19
- "exclude" : [
20
- " dist" ,
21
- " node_modules"
22
- ],
23
16
"include" : [
24
17
" src" ,
25
18
" test"
You can’t perform that action at this time.
0 commit comments