Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
if a - 1 == c or a + 1 == c:
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 };