external class Point(x:Number, y:Number)…
I create an artifact from built project, and in other project I try to use it as a library. But I get an error -
Uncaught ReferenceError: module is not defined
Maybe I should use in description Point.kt file something like @file:JsModule(…) but I absolutely can’t understand how, why, and with what parameters.
I understand that probably my question is odd or stupid, maybe you have some suggestions what I have to read about before even creating libraries, I’ve read all topics that official kotlin documentations offers about JS with kotlin. Maybe I missed something, or didn’t understand. Will be glad to hear any advices.