UNPKG

mongoose-management

Version:
48 lines (47 loc) 1.26 kB
import Converter2dSphere from './converters/2dsphere'; import ConverterArray from './converters/array'; import ConverterArrayType from './converters/arrayType'; import ConverterCommon from './converters/common'; import ConverterObject from './converters/object'; import { dataColumnType, dataIndexType } from '../types'; /** * */ export default class Converter { readonly converter2dSphere: Converter2dSphere; readonly converterArray: ConverterArray; readonly converterArrayType: ConverterArrayType; readonly converterCommon: ConverterCommon; readonly converterObject: ConverterObject; constructor(); /** * * @param columns */ getDefinitions(columns: dataColumnType[]): string; /** * * @param columns */ getTypes(columns: dataColumnType[]): string; getVirtuals(columns: dataColumnType[]): string; /** * */ getIndexes(indexes: dataIndexType[]): string; /** * * @param index */ convertIndex(index: dataIndexType): string; /** * * @param param0 */ convertIndexField([key, value]: [string, any]): string; /** * * @param param0 */ convertIndexOption([key, value]: [string, any]): string | undefined; }