pg.d.ts: add support to pg-types

This commit is contained in:
Leo Liang
2016-02-29 11:20:28 +08:00
parent b10e5ade29
commit 88fae72f6c
2 changed files with 9 additions and 1 deletions
Vendored
+4
View File
@@ -85,4 +85,8 @@ declare module "pg" {
public on(event: "error", listener: (err: Error, client: Client) => void): this;
public on(event: string, listener: Function): this;
}
namespace types {
function setTypeParser(oid: number, fn: (val: string) => any): void;
}
}