Merge pull request #11184 from aleung/types-2.0

[types-2.0] Port pg 6.1.0 types update to types-2.0 branch
This commit is contained in:
Andy
2016-09-23 06:27:02 -07:00
committed by GitHub
4 changed files with 5 additions and 9 deletions
+1 -4
View File
@@ -4,7 +4,4 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="pg" />
declare module "pg-pool" {
export {Pool, PoolConfig} from "pg";
}
export {Pool, PoolConfig} from "pg";
+1 -2
View File
@@ -1,4 +1,3 @@
/// <reference path="pg-pool.d.ts" />
import {Pool} from "pg-pool";
let pool = new Pool()
@@ -39,4 +38,4 @@ pool.query('SELECT $1::text as name', ['brianc'], function (err, res) {
console.log(res.rows[0].name) // brianc
})
pool.end();
pool.end();
+2 -2
View File
@@ -13,7 +13,7 @@
"forceConsistentCasingInFileNames": true
},
"files": [
"pg-pool.d.ts",
"index.d.ts",
"pg-pool-tests.ts"
]
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for pg
// Type definitions for pg 6.1.0
// Project: https://github.com/brianc/node-postgres
// Definitions by: Phips Peter <http://pspeter3.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped