There\u2019s nothing wrong with the typings here, TypeScript\u2019s type widening is the issue. I don\u2019t know what to say except type widening sucks and I wish it didn\u2019t exist or could be turned off \U0001f937\u200d\u2642\ufe0f