Advanced TypeScript type FTW
blog.pulumi.com
blog.pulumi.com
Just one thing that could be better outlined in the TS doc, is that conditional typing is for declaration and not for the signature of the method being implemented. It seems obvious once we know it, but can be confusing at first.