Add deprecated parseInt overload without radix parameter to provide better replacement.

This commit is contained in:
Ilya Gorbunov
2017-02-03 18:28:08 +03:00
parent 6db698f5aa
commit 84f324e04f
+3
View File
@@ -9,6 +9,9 @@ public external fun eval(expr: String): dynamic
public external val undefined: Nothing?
@Deprecated("Use toInt() instead.", ReplaceWith("s.toInt()"), level = DeprecationLevel.ERROR)
public external fun parseInt(s: String): Int
@Deprecated("Use toInt(radix) instead.", ReplaceWith("s.toInt(radix)"), level = DeprecationLevel.ERROR)
public external fun parseInt(s: String, radix: Int = definedExternally): Int