Closed KiaraGrouwstra closed 6 years ago
@tycho01 thanks for pointing out. Working on a possible fix https://github.com/gcanti/typelevel-ts/pull/10
Man, TupleLength
and TupleToTHList
are getting pretty hardcore! 😅
Indeed, those types are going out of control. Changing the Increment
definition to a string -> string
mapping
https://github.com/gcanti/typelevel-ts/blob/df682c58b837b97aeaaf940f28de649f9d10ea96/src/index.ts#L5
seems to work better and I can switch back to compact definitions
Still I'm not able to convert a number to a string
Yeah, NumberToString
appears the bottleneck there now that Microsoft/TypeScript#15768 got worse with the stricter checks in 2.5.
Pretty good workaround you got there though!
I'm currently checking if I could just fix that (and some more) at the compiler level. Feel like I've been complaining more than contributing so far so yeah.
Oh, I just got a PR in to fix 17455, so numbers may become more usable again (except for things like keyof
). 😃
It appear one of the TS 2.5 commits, maybe https://github.com/Microsoft/TypeScript/pull/17455, made type checks significantly stricter, which pretty much just broke
typelevel-ts
(as well as my mytypical
, if instead with errorType <generic> cannot be used to index type <array>
).Here is the output running tests on
2.5.0-dev.20170808
: