how am I supposed to use the string enums in kotli...
# javascript
b
how am I supposed to use the string enums in kotlin wrappers?
✅ 1
a
@turansky ^^
t
Looks like missed
raw
extension import. It can't be member due to Kotlin/JS limitations :(
b
At some point we need built in annotations that compile Kotlin enums to JS strings (like seskar)
Typescript interop being the big thing
@turansky what import do I need, the IDE auto completes
Copy code
import web.crypto.KeyFormat.raw
t
import web.crypto.raw
b
thank you, so both keyformat and that import are required; that's a bit unfortunate
t
Yes, previously we used Seskar to avoid this problem. With Kotlin/WasmJS it's not an option - no inline members support in externals 😞
b
is there an issue to add that to the compiler?
🚫 1
t
New common issue about usable unions required instead.