JSMonk/hegel

Relational operations should inferred for string as well

Open

#333 opened on Apr 17, 2021

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (55 forks)batch import
help wanted

Repository metrics

Stars
 (2,047 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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>

Contributor guide