import { MicroOrmJsonApiModule, TypeOrmJsonApiModule, TypeOrmParam, MicroOrmParam } from '../modules'; import { ConfigParam, GeneralParam, ResultGeneralParam } from './config-param'; import { RequiredFromPartial } from './util-types'; export type TypeOrmConfigParam = ConfigParam & TypeOrmParam; export type TypeOrmDefaultOptions = GeneralParam & { options: Partial; }; export type TypeOrmOptions = GeneralParam & { options: Partial; }; export type MicroOrmConfigParam = ConfigParam & MicroOrmParam; export type MicroOrmOptions = GeneralParam & { options: Partial; }; export type ResultTypeOrmModuleOptions = ResultGeneralParam & { type: typeof TypeOrmJsonApiModule; } & TypeOrmOptions & { options: RequiredFromPartial; }; export type ResultMicroOrmModuleOptions = ResultGeneralParam & { type: typeof MicroOrmJsonApiModule; } & MicroOrmOptions & { options: RequiredFromPartial; }; export type ResultModuleOptions = ResultTypeOrmModuleOptions | ResultMicroOrmModuleOptions;