I would like to create a typescript definition for a big JavaScript class without adding all its members, I would like it to be of type "any". For example:
ContainerSurface.d.ts:
declare class ContainerSurface {
}
export = ContainerSurface;
And just use the class and call any members on it without having them "declared", like:
MyClass.ts:
import ContainerSurface = require('ContainerSurface');
class MyClass extends ContainerSurface {
constructor(options) {
super(options);
var a: ContainerSurface({option: "test"});
a.add("test");
}
}
export = MyClass;