Skip to content

Commit

Permalink
fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Jul 4, 2024
1 parent 308d7ba commit 0f80d9b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions typescript/pg-promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = Promise<T>;

Expand Down Expand Up @@ -81,15 +80,15 @@ declare namespace pgPromise {
binary?: boolean
rowMode?: 'array' | null | void
rows?: number
types?: ITypes;
types?: pg.ITypes
}

interface IParameterizedQuery {
text?: string | QueryFile
values?: any[]
binary?: boolean
rowMode?: void | 'array'
types?: ITypes;
types?: pg.ITypes;
}

interface IPreparedParsed {
Expand Down Expand Up @@ -252,7 +251,7 @@ declare namespace pgPromise {
binary: boolean;
rowMode: void | 'array';
rows: number;
types: ITypes;
types: pg.ITypes;

parse(): IPreparedParsed | errors.PreparedStatementError

Expand All @@ -272,7 +271,7 @@ declare namespace pgPromise {
// advanced properties:
binary: boolean;
rowMode: void | 'array';
types: ITypes;
types: pg.ITypes;

parse(): IParameterizedParsed | errors.ParameterizedQueryError

Expand Down

0 comments on commit 0f80d9b

Please sign in to comment.