# omit

Published articles for omit.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## How Omit Can Collapse TypeScript Union Types into an Empty Object

DevFeed: [How Omit Can Collapse TypeScript Union Types into an Empty Object](<https://devfeed.tech/articles/omit-t-k-typescript-24884.md>)

Original publisher: [Read original article](<https://habr.com/ru/companies/yandex/articles/1070236/>)

Author: Zlaylink (Яндекс)

Published: 2026-08-19T07:23:14Z

Content type: tutorial

Language: ru

Sources: [Яндекс - Как мы делаем Яндекс / Статьи](<https://devfeed.tech/sources/source.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [distributive](<https://devfeed.tech/tags/distributive.md>), [ide](<https://devfeed.tech/tags/ide.md>), [omit](<https://devfeed.tech/tags/omit.md>), [tag-39f0c170b680](<https://devfeed.tech/tags/tag-39f0c170b680.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

This tutorial explains how applying TypeScript's Omit utility to union types can produce an empty object type instead of preserving each union branch. Using a user-data example and event interfaces, it describes how this can remove useful type checking and autocomplete, and introduces type distributivity as the underlying concept.

### Source excerpt

Представьте ситуацию: вы выкатываете новую фичу, а бэкендер спрашивает вас: "Слушай, а почему вместо событий -- пустой объект?". Вы в шоке: "Как так -- пустой объект? У меня же TypeScript, всё типизировано, такого не могло быть!". Спойлер -- могло. Меня зовут Денис Платонов, я старший разработчик интерфейсов в Телемосте и я отвечаю за on-premise развёртывание веб-клиента Телемоста в инфраструктуре заказчика. В этой статье я расскажу о том, как безобидный на первый взгляд Omit превратил наш аккуратный тип событий в пустой объект. Заодно разберём, как работает дистрибутивность типов в TypeScript и поделимся, чему нас научил этот кейс. Читать далее