[JS IR] Allow restriction of function argument by external type

Add a special annotation @JsExternalTypeArgument for
 marking function parameters. The marked parameter
 accepts an argument with an external type only.

^KT-57479 Fixed
This commit is contained in:
Alexander Korepanov
2023-03-21 15:35:52 +01:00
committed by Space Team
parent 4819593bf4
commit e8be3043cc
21 changed files with 394 additions and 1 deletions
@@ -44,6 +44,9 @@ object JsStandardClassIds {
@JvmField
val JsExternalInheritorsOnly = "JsExternalInheritorsOnly".jsId()
@JvmField
val JsExternalArgument = "JsExternalArgument".jsId()
@JvmField
val JsExportIgnore = JsExport.createNestedClassId(Name.identifier("Ignore"))