Improve Bundler annotation

This commit is contained in:
Pavel Birukov 2018-09-06 10:24:27 +03:00
parent b5372fb2ea
commit 703caed506

View File

@ -3,7 +3,7 @@ import { BaseModelContructorOptions } from './BaseService';
function Bundler<T extends { [K: string]: typeof BaseService }>(
services: T,
): new (...args: any[]) => { [K in keyof T]: InstanceType<T[K]> } {
): new (baseOptions: BaseModelContructorOptions) => { [K in keyof T]: InstanceType<T[K]> } {
const combined = { ...services as object } as T;
interface BundleClass {
[K: string]: BaseService;