Require one of two properties
What would you folks say is a clean way to accomplish that either
userToken or ConversationId are set in my type without requiring both?
userToken or ConversationId are set in my type without requiring both?
export type PostChatData = {
command: Extract<ChatCommand, 'POST'>;
userToken: string;
conversationId: string;
type: ChatType;
// other crap
};