mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Improve Bundler annotation
This commit is contained in:
parent
b5372fb2ea
commit
703caed506
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user