DefinitelyTyped/types/pg
Alex Sherwin 6ce9368ebd Existing "QueryResult" interface is missing property "fields"
only the array "QueryArrayResult" variant contained the "fields"
property

Added a new "QueryResultBase" interface with the shared set of
fields between the single/array results and refactored both
QueryResult and QueryArrayResult to extend from it, each now
only needing to specify their own type variation of the "row"
property for the type of results they contain (single vs array)

Modified the tests to reference the "fields" array on single
select results similarly to how it was done for the array
select results
2018-03-01 16:40:46 -05:00
..
v6 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
index.d.ts Existing "QueryResult" interface is missing property "fields" 2018-03-01 16:40:46 -05:00
pg-tests.ts Existing "QueryResult" interface is missing property "fields" 2018-03-01 16:40:46 -05:00
tsconfig.json Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
tslint.json