Either/or typed props in TypeScript

How to require exactly one of two props—never both, never neither