mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-19 16:49:45 +08:00
24 lines
694 B
TypeScript
24 lines
694 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
|
|
|
|
declare module "pg-types" {
|
|
|
|
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[] };
|
|
|
|
}
|
|
|
|
}
|