I - Interface Segregation (ISP)
Last updated
Last updated
Registry.getInstance().provide('classA', new A());class Exec {
@inject('classA')
classA: Interface2;
}
export interface2 {
method2(): void;
}interface ARepo extends Interface1, Interface2 {
method1(): void;
method2(): void;
method3(): void;
}
class A implements ARepo {
method1(): void { ... }
method2(): void { ... }
method3(): void { ... }
}