How 2 TypeScript: Get the last item type from a tuple of types
https://dev.to/miracleblue/how-2-typescript-get-the-last-item-type-from-a-tuple-of-types-3fh3 [dev.to]
2019-06-18 02:50
Kinda like a normal array lookup!
But what if you don’t know the length of the tuple? Hmm... how do we get TypeScript to tell us the length and then let us use that length to pick out the last item, all at compile time?