Skip to content

Generated javascript is missing imports required for Type.resolveClass to work #84

@theJenix

Description

@theJenix

I am running into an issue where I have a class in Haxe that looks like:

// Request.hx
import pkg.DataType;

class Request {
}

class Response {
  final data: DataType
}

When I run this through genes, it emits Request.d.ts that contains an import for pkg.DataType, and Request.js, which does not have the import. The problem here is that the import is needed for $hxClasses to be populated with the DataType type, and that is required for Type.resolveClass to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions