Skip to content

Commit

Permalink
updating typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Nov 9, 2019
1 parent f3e7eb5 commit f06e609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ function Database(cn, dc, config) {
* @param {array|value} [values]
* Parameters for the procedure - one value or an array of values.
*
* @returns {external:Promise}
* @returns {external:Promise>}
*
* @see
* {@link Database#func func}
Expand Down
4 changes: 2 additions & 2 deletions typescript/pg-promise.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

/////////////////////////////////////////
// Requires pg-promise v9.3.0 or later.
// Requires pg-promise v10.0.0 or later.
/////////////////////////////////////////

// We use ES6 as static promise here, because generic promises are still not supported.
Expand Down Expand Up @@ -364,7 +364,7 @@ declare namespace pgPromise {
func<T = any>(funcName: string, values?: any, qrm?: queryResult): XPromise<T>

// API: http://vitaly-t.github.io/pg-promise/Database.html#proc
proc<T = any>(procName: string, values?: any, cb?: (value: any) => T, thisArg?: any): XPromise<T>
proc(procName: string, values?: any): XPromise<null>

// API: http://vitaly-t.github.io/pg-promise/Database.html#map
map<T = any>(query: QueryParam, values: any, cb: (row: any, index: number, data: any[]) => T, thisArg?: any): XPromise<T[]>
Expand Down

0 comments on commit f06e609

Please sign in to comment.