The implementation isn't even that horrible. Ignoring the integer list. That workaround is still hillarious to me.
Anyway, it seems both impressive that someone did this and that it actually works. Weird how typescript has the nicest typelevel programming I know, even nicer than some dependent ones. It probably is the only language one where autocompletion properly works with computed types?