Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

What keep you guys using Rescript?

$
0
0

The biggest pain is that TS has no idea of how to type a tuple unless you provide a type annotation.

const t1 = [1, "a"] // type is Array<string | number>

// you have to do this
const t1: [number, string] = [1, "a"]

Viewing all articles
Browse latest Browse all 2592

Trending Articles