Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
interface TNavCardButtonText extends TNavCardButton { text: string; icon?: never; } interface TNavCardButtonIcon extends TNavCardButton { icon: string; text?: never; } export type TNavCardTemplate = { buttons: (TNavCardButtonIcon | TNavCardButtonText)[] }
module.exports = connection = { ... } // и module.exports = { development: connection };
И вопрос поправьте. В нём какое-то противоречие