Typescript as compilation target

2021-10-18 Thread kamilchm
You can do the same with TypeScript, providing type definitions as JSDoc

Compile Nim to JavaScript from inside Nim?

2021-03-11 Thread kamilchm
To send a dynamically generated JS code to the browser?

Reference to tuple type

2020-10-06 Thread kamilchm
Thx! I'll use `let`.

Reference to tuple type

2020-10-06 Thread kamilchm
Hi, I try to use a `ref` to a tuple type, but I'm getting an error which I don't understand: `Error: () must have a tuple type`. An example code: type MyTuple = tuple a: string b: int proc newMyTuple(a: string, b: int): ref MyTuple = new(result) resu