Skip to content

Commit 0f80d9b

Browse files
committed
fixing types
1 parent 308d7ba commit 0f80d9b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

typescript/pg-promise.d.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// Follow the links below:
1616
// https://stackoverflow.com/questions/36593087/using-a-custom-promise-as-a-generic-type
1717
// https://github.com/Microsoft/TypeScript/issues/1213
18-
import {ITypes} from "./pg-subset";
1918

2019
type XPromise<T> = Promise<T>;
2120

@@ -81,15 +80,15 @@ declare namespace pgPromise {
8180
binary?: boolean
8281
rowMode?: 'array' | null | void
8382
rows?: number
84-
types?: ITypes;
83+
types?: pg.ITypes
8584
}
8685

8786
interface IParameterizedQuery {
8887
text?: string | QueryFile
8988
values?: any[]
9089
binary?: boolean
9190
rowMode?: void | 'array'
92-
types?: ITypes;
91+
types?: pg.ITypes;
9392
}
9493

9594
interface IPreparedParsed {
@@ -252,7 +251,7 @@ declare namespace pgPromise {
252251
binary: boolean;
253252
rowMode: void | 'array';
254253
rows: number;
255-
types: ITypes;
254+
types: pg.ITypes;
256255

257256
parse(): IPreparedParsed | errors.PreparedStatementError
258257

@@ -272,7 +271,7 @@ declare namespace pgPromise {
272271
// advanced properties:
273272
binary: boolean;
274273
rowMode: void | 'array';
275-
types: ITypes;
274+
types: pg.ITypes;
276275

277276
parse(): IParameterizedParsed | errors.ParameterizedQueryError
278277

0 commit comments

Comments
 (0)