Files
DefinitelyTyped/pg-types/index.d.ts
2016-10-25 03:18:27 -07:00

19 lines
625 B
TypeScript

// Type definitions for pg-types 1.11.0
// Project: https://github.com/brianc/node-pg-types
// Definitions by: James Bracy <https://github.com/waratuman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface TypeParser {
(value: any): any;
}
export function getTypeParser(oid: number, format: string): TypeParser;
export function setTypeParser(oid: number, format: string, parseFn: TypeParser): void;
export function setTypeParser(oid: number, parseFn: TypeParser): void;
export namespace arrayParser {
export function create(source: any, transform: TypeParser): { parse: () => any[] };
}