Поделиться через


ServiceClass type

Это определение типа для службы.

export type ServiceClass<T> = {
    new (serviceScope: IServiceScope): T;
} | {
    new (serviceScope: ServiceScope): T;
};