From 0f80d9be2e00b4fc1c90574ed7a0abf866765d12 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Fri, 5 Jul 2024 00:55:25 +0100 Subject: [PATCH] fixing types --- typescript/pg-promise.d.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/typescript/pg-promise.d.ts b/typescript/pg-promise.d.ts index c8df0b19..7555490d 100644 --- a/typescript/pg-promise.d.ts +++ b/typescript/pg-promise.d.ts @@ -15,7 +15,6 @@ // Follow the links below: // https://stackoverflow.com/questions/36593087/using-a-custom-promise-as-a-generic-type // https://github.com/Microsoft/TypeScript/issues/1213 -import {ITypes} from "./pg-subset"; type XPromise = Promise; @@ -81,7 +80,7 @@ declare namespace pgPromise { binary?: boolean rowMode?: 'array' | null | void rows?: number - types?: ITypes; + types?: pg.ITypes } interface IParameterizedQuery { @@ -89,7 +88,7 @@ declare namespace pgPromise { values?: any[] binary?: boolean rowMode?: void | 'array' - types?: ITypes; + types?: pg.ITypes; } interface IPreparedParsed { @@ -252,7 +251,7 @@ declare namespace pgPromise { binary: boolean; rowMode: void | 'array'; rows: number; - types: ITypes; + types: pg.ITypes; parse(): IPreparedParsed | errors.PreparedStatementError @@ -272,7 +271,7 @@ declare namespace pgPromise { // advanced properties: binary: boolean; rowMode: void | 'array'; - types: ITypes; + types: pg.ITypes; parse(): IParameterizedParsed | errors.ParameterizedQueryError