Stupid question. How to make external class exten...
# javascript
h
Stupid question. How to make external class extend non-external?
Copy code
external class MyError extends Error { ... }
r
Hi Ivan, First of all, to make it clear,
external
modifier is applicable only to interfaces. And answering to your question, no, we cannot inherit external interface from non-external
h
im using ts2kt to convert typescript typings.
r
I apologize for confusion. Sure it is possible to create
external class
in Kotlin/JS but inherit it from non-external class is prohibited.
👍 3
n
Is that due to ES 6 not being supported in Kotlin JS?