WasmImport

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class WasmImport(val module: String, val name: String = "")(source)

Imports a function from the given module with the given optional name. The declaration name will be used if the name argument is not provided.

Can only be used on top-level external functions.

The annotated function will be imported into Wasm module without type adapters.

Since Kotlin

1.8
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class WasmImport(val module: String, val name: String = "")(source)

Imports a function from the given module with the given optional name. The declaration name will be used if the name argument is not provided.

Can only be used on top-level external functions.

The annotated function will be imported into Wasm module without type adapters.

Since Kotlin

1.8

Properties

Link copied to clipboard
Since Kotlin 1.8
Since Kotlin 1.8
Link copied to clipboard
Since Kotlin 1.8
Since Kotlin 1.8