I have a small problem, but big frustration. To my custom module, I need to pass an array of components. So... To keep good habits, I want to describe it using Typescript. It looks something like this:
export interface ModalModuleConfig {
title: string;
z-index: number;
entryComponents: Component[];
}
But Component[] isn't a proper type. It only works with any[]. But I don't want to cut corners using any[]. I prefer to use type created for the angular components. Something like Component[], ComponentDecorator[] or ComponentClass[]. But none of them works. Can someone help me?