JSMonk/hegel

Relational operations should inferred for string as well

Open

#333 opened on 2021年4月17日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (2,047 stars) (55 forks)batch import
help wanted

説明

function le(a, b) {
    return a <= b
}

Actual: a and b infer as $StrictUnion<bigint | number>

Expected a and b infer as $StrictUnion<bigint | number | string>

コントリビューターガイド