Skip to content

JsAttribute

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

JsAttribute

Binds an external function to a JavaScript export using @js("module", "export"). Available only on JavaScript platforms.

public struct JsAttribute

module_name

Fully qualified module containing the declaration.

public module_name: string

export_name

Name exposed to callers of the foreign function.

public export_name: string