From 764a25f6ae2ed4e79a9af5bbfbd9bea0dbd0cbf5 Mon Sep 17 00:00:00 2001 From: Alexey Trilis Date: Wed, 20 Nov 2019 12:49:03 +0100 Subject: [PATCH] [JS] Add deprecated typealias and extension properties for renamed in dukat update entities --- libraries/stdlib/js/src/org.w3c/deprecated.kt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libraries/stdlib/js/src/org.w3c/deprecated.kt diff --git a/libraries/stdlib/js/src/org.w3c/deprecated.kt b/libraries/stdlib/js/src/org.w3c/deprecated.kt new file mode 100644 index 00000000000..f2d9e76f956 --- /dev/null +++ b/libraries/stdlib/js/src/org.w3c/deprecated.kt @@ -0,0 +1,23 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +package org.w3c.dom + +@Deprecated("Use UnionMessagePortOrWindowProxy instead.", ReplaceWith("UnionMessagePortOrWindowProxy")) +typealias UnionMessagePortOrWindow = UnionMessagePortOrWindowProxy + +@Deprecated("Use `as` instead.", ReplaceWith("`as`")) +var HTMLLinkElement.as_ + get() = `as` + set(value) { + `as` = value + } + +@Deprecated("Use `is` instead.", ReplaceWith("`is`")) +var ElementCreationOptions.is_ + get() = `is` + set(value) { + `is` = value + } \ No newline at end of file