Is there a way in TypeScript to create an interface where you can only supply either content
OR content_object
, but not both? It would be beneficial for the code structure if this restriction could be implemented. Any suggestions on the simplest approach to achieve this?
interface IModal {
content?: string;
content_object?: object;
}