Ahmet Enes Duruer
11/07/2018, 1:54 PMcoder82
11/09/2018, 5:42 PMcarolos
11/10/2018, 6:45 PMankushg
11/15/2018, 9:06 PMMap
. Can this also work with Json
in Kotlin/JS? https://kotlinlang.org/docs/reference/delegated-properties.html#storing-properties-in-a-mapankushg
11/15/2018, 9:08 PMJson
, and another using the properties explicitly as parameters?coletz
11/16/2018, 9:50 AMhiperbou
11/19/2018, 5:35 PMSimon Cox
11/20/2018, 3:18 PMSlackbot
11/22/2018, 11:16 PMehubbard
11/23/2018, 5:01 PMbj0
11/25/2018, 5:59 AMkotlin-frontend-plugin
and create-react-kotlin-app
. They are both by jetbrains and appear to be actively developed but dont seem to be related. If I want to start with a (fairly) simple browser-only app should I use one of these 2 options? Or something else?bj0
11/28/2018, 6:51 PMimport()
function for dynamic imports? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_ImportsClint Checketts
11/28/2018, 9:12 PMDima Avdeev
12/01/2018, 12:41 PMbashor
12/13/2018, 6:19 PMspierce7
12/14/2018, 4:35 PMfcosta
12/14/2018, 7:28 PMjw
12/14/2018, 7:43 PMaarjav
12/27/2018, 7:10 PMrequire
and some module system. Any tutorials or examples on the topic would be appreciated.ankushg
01/02/2019, 7:48 AMplavelo
01/09/2019, 12:29 AMpackage test
sealed class Test {
object Inner: Test()
}
and I transpiled it with jetbrains/kotlin-webpack-plugin, then I could get this code.
(function (_, Kotlin) {
'use strict';
var Kind_OBJECT = Kotlin.Kind.OBJECT;
var Kind_CLASS = Kotlin.Kind.CLASS;
Test$Inner.prototype = Object.create(Test.prototype);
Test$Inner.prototype.constructor = Test$Inner;
function Test() {
}
function Test$Inner() {
Test$Inner_instance = this;
Test.call(this);
}
Test$Inner.$metadata$ = {
kind: Kind_OBJECT,
simpleName: 'Inner',
interfaces: [Test]
};
var Test$Inner_instance = null;
function Test$Inner_getInstance() {
if (Test$Inner_instance === null) {
new Test$Inner();
}
return Test$Inner_instance;
}
Test.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'Test',
interfaces: []
};
Object.defineProperty(Test, 'Inner', {
get: Test$Inner_getInstance
});
var package$test = _.test || (_.test = {});
package$test.Test = Test;
Kotlin.defineModule('english', _);
return _;
}(module.exports, require('kotlin')));
plavelo
01/09/2019, 12:31 AMimport { test } from './test'
then I got an error.
Uncaught TypeError: Cannot read property 'test' of undefined
It is not occurred when I didn't use sealed class.
Is this problem because of my code?Talon
01/09/2019, 6:45 PMthana
01/14/2019, 7:54 PMthana
01/17/2019, 7:20 AMSantosh Astagi
01/18/2019, 4:48 PMhallvard
01/18/2019, 9:41 PM@JvmOverloads
, usable from java both with and without its single String parameter. I can't make it work in js. The hello
function in the example here: https://kotlinlang.org/docs/reference/js-to-kotlin-interop.html#jsname-annotation doesn't have greeting
as an optional parameter. So are optional parameters not possible for a js target (without using the external
modifier and actually writing the js yourself)?galex
01/19/2019, 4:56 PMgalex
01/19/2019, 4:57 PMneworldlt
01/20/2019, 10:40 AM