12.1.6 JavaScript target Metadata
This is the list of JavaScript specific metadata. For more information, see also the complete list of all Haxe built-in metadata.
JavaScript metadata
| Metadata | Description |
|---|---|
| @:expose (?Name=Class path) | Makes the class available on the window object or exports for node.js |
| @:jsRequire | Generate javascript module require expression for given extern |
| @:selfCall | Translates method calls into calling object directly |