val definedExternally: Nothing
The property that can be used as a placeholder for statements and values that are defined in JavaScript.
This property can be used in two cases:
definedExternally
.There's two forms of using definedExternally
:
= definedExternally
(for functions, properties and parameters).{ definedExternally }
(for functions and property getters/setters).This property can't be used from normal code.
Examples:
external fun foo(): String = definedExternally
external fun bar(x: Int) { definedExternally }
external fun baz(z: Any = definedExternally): Array<Any>
external val prop: Float = definedExternally
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/defined-externally.html