mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
19 lines
625 B
TypeScript
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[] };
|
|
|
|
} |