@Retention(value=RUNTIME) @Target(value={PACKAGE,METHOD,FIELD}) @Documented public @interface Module
This implies that when the Java program uses (import) that element, the given module will be required if transpiling using modules. This is a way to invoke "require" in the generated TypeScript/JavaScript code, but it remains transparent for the JSweet programmer.
Modifier and Type | Required Element and Description |
---|---|
String |
value
The name of the module to be required.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
exportedElement
The name of the exported element (module 'foo' { export = [exportedElement]; });
|