UNPKG

473 BTypeScriptView Raw
1import { CustomTypesConfig } from '..';
2
3type TypeParser<TOid = number, TReturn = any> = (oid: TOid) => TReturn;
4type TypeFormat = 'text' | 'binary';
5
6export = TypeOverrides;
7declare 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}