Include an interface into a class in a .d.ts file
Advertisements I have a JavaScript class that extends the instance with constructor options: class C { constructor(options) { Object.assign(this, options) } } That means that the class instance is going to have all of the properties of the options object. I’m looking for a way to write a .d.ts definition for that class without duplicating… Read More Include an interface into a class in a .d.ts file