mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
pg.d.ts: Make parser a generic function
This commit is contained in:
2
pg/pg.d.ts
vendored
2
pg/pg.d.ts
vendored
@@ -87,6 +87,6 @@ declare module "pg" {
|
||||
}
|
||||
|
||||
namespace types {
|
||||
function setTypeParser(oid: number, fn: (val: string) => any): void;
|
||||
function setTypeParser<T>(typeId: number, parser: (value: string) => T): void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user