I have the following definition type file:
// index.d.ts
declare module 'Transformer' {
class EditableElement {
constructor(target: SVGPoint);
}
export = EditableElement;
}
And I want to import EditableElement. But when I write the following line:
import {EditableElement} from 'Transformer';
I get the next error:
Module "Transformer" resolves to a non-module entity and cannot be imported using this construct.
How could I import the EditableElement class? Actually, I just want to make use of that class. I don't want the import directive to have a collateral effect in my code. I just want use it :'(