Skip to content

Unsupported Statement kind: ImportEqualsDeclaration #587

Description

@frank256

I get this error when I try to pull a Lua function that is found somewhere down a global table hierarchy, e.g. GlobalLuaTable.Graphics.draw, into the file scope:

// Somewhere in .d.ts
declare namespace GlobalLuaTable {
  namespace Graphics {
    function draw(): void;
 }
}

// Then at the start of some .ts:
import draw = GlobalLuaTable.Graphics.draw;

This leads to the error Unsupported Statement kind: ImportEqualsDeclaration.

Of course, I might as well do

const draw = GlobalLuaTable.Graphics.draw;

but my IDE likes to insert these import = ... style imports instead.

Any chance these will be supported?

Thank you for a great project!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions