Package-level declarations
Functions and other APIs specific to the JavaScript platform.
Functions and other APIs specific to the JavaScript platform.
Functions and other APIs specific to the JavaScript platform.
Types
Forces a top-level property to be initialized eagerly, opposed to lazily on the first access to file and/or property.
This annotation marks the experimental JS-collections API that allows to manipulate with native JS-collections The API can be removed completely in any further release.
This annotation marks the experimental Kotlin/JS reflection API that allows to create an instance of provided KClass The API can be removed completely in any further release.
Exception thrown by the JavaScript code. All exceptions thrown by JS code are signalled to Wasm code as JsException
. One can catch such exception in Wasm, but no details of the original exception can be retrieved from it.
Exports top-level declaration on JS platform.
Exports top-level declaration on JS platform.
When placed on a function parameter, requires the type of the passed argument to be external.
When placed on an external interface or class, requires all its child interfaces, classes, and objects to be external as well.
Specifies the name of the compiled file produced from the annotated source file instead of the default one.
Specifies the name of the compiled file produced from the annotated source file instead of the default one.
Denotes an external
declaration that must be imported from native JavaScript library.
Denotes an external
declaration that must be imported from JavaScript module.
Gives a declaration (a function, a property or a class) specific name in JavaScript.
Gives a declaration (a function, a property or a class) specific name in JavaScript.
Denotes an external
declaration that can be used without module system.
Adds prefix to external
declarations in a source file.
Adds prefix to external
declarations in a source file.
JavaScript value that can serve as a reference for any Kotlin value.
Specifies that an additional static method is generated from the annotated companion object member if it's a function. If the member is a property, additional static getter/setter methods are generated.
Specifies that an additional static method is generated from the annotated companion object member if it's a function. If the member is a property, additional static getter/setter methods are generated.
Exposes the JavaScript RegExp object to Kotlin.
Properties
The property that can be used as a placeholder for statements and values that are defined in JavaScript.
The property that can be used as a placeholder for statements and values that are defined in JavaScript.
Exposes the JavaScript undefined property to Kotlin.
Functions
Converts the result of RegExp.exec to an array where the first element contains the entire matched text and each subsequent element is the text matched by each capturing parenthesis.
Exposes the JavaScript eval function to Kotlin.
Returns the entire text matched by RegExp.exec if the index parameter is 0, or the text matched by the capturing parenthesis at the given index.
Puts the given piece of a JavaScript code right into the calling function. The compiler replaces call to js(...)
code with the string constant provided as a parameter.
Resets the regular expression so that subsequent RegExp.test and RegExp.exec calls will match starting with the beginning of the input string.
For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.