UNPKG

nestjs-express-cassandra

Version:
9 lines (8 loc) 677 B
import { Provider, Type } from '@nestjs/common'; import { ConnectionOptions } from '../interfaces/connection.interface'; import { FunctionType } from '../interfaces/decorators.interface'; import { ExpressCassandraModuleAsyncOptions } from '../interfaces/module-options.interface'; export declare function getModelProviderName(entity: FunctionType): string; export declare function getConnectionProviderName(connection?: ConnectionOptions | ExpressCassandraModuleAsyncOptions | string): string; export declare function getRepositoryProviderName<T>(entity: Type<T>): string; export default function createFeatureProviders<T>(entities: Type<T>[], connection: string): Provider[];