here’s a TypeScript question (or rather a general ...
# typescript
w
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
That sounds right, but I think what you want is the constructor function on your interface, not the
typeof ...