Type of angular components
As it turns out this is not possible in TypeScript right now. Decorators cannot change type of a class, that means they are invisible for a type system.
More info can be found here:
- https://github.com/Microsoft/TypeScript/issues/26347
- https://github.com/Microsoft/TypeScript/issues/4881
There is ComponentType<T>
.
Maybe it will help.
import { ComponentType } from '@angular/cdk/overlay';