Skip to content

Static import #31

@mhfrantz

Description

@mhfrantz

ts-java should have a feature similar to java's Static Import.

Rough outline:

  1. Add a new section to tsjava 'staticimport'.
  2. It can list expressions like 'com.acme.Foo.*' to import all public static members of com.acme.Foo, or expressions that import a specific static member: 'com.acme.Foo.bar'.
  3. autoImport can then be used to import these into a particular .ts function:
var bar = autoImport('bar');
bar(1,2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions