UNPKG

protontype

Version:

A simple REST framework make in TypeScript

10 lines (9 loc) 297 B
export abstract class DBConnector<OptionsType, ConnectionType> { abstract createConnection(config?: OptionsType): Promise<ConnectionType>; } export class ProtonDB<C> { public static dbConnection: any; public static getBD<C>(): C { return <C>this.dbConnection; } }