UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

11 lines (10 loc) 453 B
import type { Connection } from 'typeorm'; import { DB_TYPE } from '../types/enums'; import type { DatabaseObjectType } from '../types/types'; import type { Redis } from 'ioredis'; export declare class DatabaseContainer { protected container: Map<DB_TYPE, Connection | Redis>; constructor(dbConnection: Connection | null, redisClient: Redis | null); get<T extends DB_TYPE>(type: T): DatabaseObjectType<T>; has(type: DB_TYPE): boolean; }