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
MetadataDescription
@:expose (?Name=Class path)Makes the class available on the window object or exports for node.js
@:jsRequireGenerate javascript module require expression for given extern
@:selfCallTranslates method calls into calling object directly