JSMonk / hegel

An advanced static type checker
https://hegel.js.org
MIT License
2.09k stars 59 forks source link

Array.isArray returns type unknown instead of boolean #80

Closed digis-romanchenkopv closed 4 years ago

digis-romanchenkopv commented 4 years ago

https://github.com/JSMonk/hegel/blob/8160a4c2b0acc4c070bfa836943427fd1780f153/packages/typings/standard/index.d.ts#L5014

Playground reference: https://jsmonk.github.io/hegel/try#MYewdgzgLgBAhgLhgIxCANgUzmGBeGAQQCdi4BPAOgEsISzyAKAbQBYBdASgG4AoIA

JSMonk commented 4 years ago

Yes. It seems like Hegel doesn't parse TypeScript Type Guards as boolean return type. We will fix it soon.