Describe the bug
ts-interface-generator does not recognize the type function as special and subsequently adds a default import in the generated interface definition.
On the Console, a warning is printed: For the type 'function' an import is created with module name 'function', using its default export. Is this correct?
In the generated interface definition, the following import is added: import function from "function";
This breaks typescript compilation of the file.
Expected behavior
Recognize function as special type that does not need importing in the interface definition.
Describe the bug ts-interface-generator does not recognize the type
function
as special and subsequently adds a default import in the generated interface definition. On the Console, a warning is printed:For the type 'function' an import is created with module name 'function', using its default export. Is this correct?
In the generated interface definition, the following import is added:import function from "function";
This breaks typescript compilation of the file.
Expected behavior Recognize
function
as special type that does not need importing in the interface definition.