And next question, how do I access things from `pr...
# javascript
v
And next question, how do I access things from
process
in Kotlin/JS for node.js besides using for example
private val platform = js("process.platform") as String
r
external val process: dynamic
should work
v
Ah, right, forgot it like that. But I assumed this is a not too uncommon request. Isn't there some typesafe variant that someone already provided? I would have guessed it is included in Kotlin/JS
r
in 1.4 there will be new nodejs bindigs
v
And that
kotlinx-nodejs
package only works with 1.4?
I tried now to manually depend on
@types/node
and let Dukat do its magic, but it fails for
domain.domain.module_node.kt
, producing invalid code 😞
r
I'm not sure if it works with current version
v
Hm, it gives a big error about variants that cannot be resolved properly. But anyway, by depending on
@types/node
and deleting the invalid
domain.domain.module_node.kt
I'm now able to
import process
and use it :-)