https://pulumi.com logo
#typescript
Title
# typescript
w

white-chef-55657

05/24/2022, 5:11 PM
here’s a TypeScript question (or rather a general OOP question) I have
abstract
*class* myComponent extends pulumi.ComponentResource
and then many implementations of it I’d like to define an interface that has a property that is
typeof myComponent
so I can instantiate it but when I do I get an error that I cannot init an abstract class how do I refer implementations of an abstract class?
o

orange-policeman-59119

05/24/2022, 7:46 PM
That sounds right, but I think what you want is the constructor function on your interface, not the
typeof ...