See https://github.com/Microsoft/TypeScript/pull/5980 and https://github.com/Microsoft/TypeScript/pull/8841