1 | import { CustomTypesConfig } from '..';
|
2 |
|
3 | type TypeParser<TOid = number, TReturn = any> = (oid: TOid) => TReturn;
|
4 | type TypeFormat = 'text' | 'binary';
|
5 |
|
6 | export = TypeOverrides;
|
7 | declare class TypeOverrides implements CustomTypesConfig {
|
8 | constructor(types?: CustomTypesConfig);
|
9 | setTypeParser(oid: number, format: TypeFormat, fn: TypeParser): void;
|
10 | setTypeParser(oid: number, fn: TypeParser): void;
|
11 | getTypeParser(oid: number, format?: TypeFormat): TypeParser;
|
12 | }
|