UNPKG

grand-connectors

Version:

A Grandjs package for applying repository pattern for nodejs and javascript applications using typescript

32 lines (31 loc) 708 B
/** * @package @GrandConnectors * @author Tarek Salem * MIT License */ /** * ============================================================================== * File Role: Interfaces File * ============================================================================== */ import { DataSource } from "./index"; export interface IDataSource { connect(): any; type: string; } export interface IRepository { dataSources: { [key: string]: DataSource; }; Models: { [key: string]: { DataSource: DataSource; Model?: any; Entity?: any; }; }; } export declare enum ServiceModes { global = "global", private = "private" }