JSMonk/hegel

Relational operations should inferred for string as well

Open

#333 创建于 2021年4月17日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)JavaScript (55 fork)batch import
help wanted

仓库指标

Star
 (2,047 star)
PR 合并指标
 (30 天内没有已合并 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>

贡献者指南