mmaillot
03/15/2018, 1:41 PMconst point = new lib.Point(x, y)
I tried :
val lib = require("lib")
val point = lib.Point(x, y)
I got an error because KotlinJS generate this : const point = lib.Point(x, y)
How to force a new ?anton.bannykh
03/15/2018, 2:04 PMexternal
keyword? https://kotlinlang.org/docs/reference/js-interop.html#external-modifiermmaillot
03/15/2018, 2:18 PManton.bannykh
03/15/2018, 2:30 PMwickedev
03/16/2018, 2:22 AM@JsModule("lib")
external class Point(x: Float, y: Float)