mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
609 B
TypeScript
16 lines
609 B
TypeScript
// Type definitions for pg-types 1.11
|
|
// Project: https://github.com/brianc/node-pg-types
|
|
// Definitions by: James Bracy <https://github.com/waratuman>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export type 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 {
|
|
function create(source: any, transform: TypeParser): { parse(): any[] };
|
|
}
|