I am attempting to define an interface in a declaration file:
declare namespace Foo{
export interface Bar{
new(attrs, options)
}
}
Then I want to inherit from this interface in my code:
class Chunk extends Foo.Bar {}
However, I encountered the following error -
error TS2507: Type 'any' is not a constructor function type.
What is causing this issue? How should I properly define an extendable class in a declaration file?