JSMonk/hegel

Relational operations should inferred for string as well

Open

#333 aberto em 17 de abr. de 2021

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (55 forks)batch import
help wanted

Métricas do repositório

Stars
 (2.047 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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>

Guia do colaborador