Skip to content

Commit

Permalink
setTypeParser typescript definition error
Browse files Browse the repository at this point in the history
It seems to me that those two are switched, no? The function receives a `string` a can return `any` type, not the other way around, right?

Thanks
  • Loading branch information
jcristovao authored Sep 9, 2016
1 parent f21e072 commit 5492816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/pg-subset.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ declare module 'pg-subset' {
// Interface of 'pg-types' module;
// See: https://github.com/brianc/node-pg-types
interface ITypes {
setTypeParser:(oid:number, format:string|((value:any)=>string))=>void;
setTypeParser:(oid:number, format:string|((value:string)=>any))=>void;
getTypeParser:(oid:number, format?:string)=>any;
arrayParser:(source:string, transform:(entry:any)=>any)=>Array<any>;
}
Expand Down

0 comments on commit 5492816

Please sign in to comment.