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

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