interface Sub {} class FirstSub extends Sub {} class SecondSub extends Sub {} register(subscriber: Sub): void {} register(FirstSub); register(SecondSub);
register <Sub extends { setMediator(): void; whateveryouneed(): any }>(subscriber: Sub): void
Обсуждают сегодня