You can do the following:
const classesMap = {
AComponentType: AComponentType,
BComponentType: BComponentType
}
And then:
CreateDynamicComponent(typeName: string) {
...
const componentFactory = ComponentFactoryResolver.resolveComponentFactory(classesMap[typeName].prototype.constructor)
...
}