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 (55 forks)batch import
help wanted

Repository metrics

Stars
 (2,047 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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>

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