TypeScript problem: Related object properties should either all be provided,...
TypeScript problem: Related object properties should either all be provided, or all omitted.
Two solutions:
1. Nest them under an optional object.
2. Use a union
TypeScript problem: Related object properties should either all be provided, or all omitted.
Two solutions:
1. Nest them under an optional object.
2. Use a union