From 718212a4917dc40d6fecc2eebfc95dac963dd2c3 Mon Sep 17 00:00:00 2001 From: Kirill Mokevnin Date: Wed, 12 Aug 2026 08:42:21 -0400 Subject: [PATCH] docs: say what the library is for The README opened with install and usage, so a reader could see how to call the functions but not why the package exists or which course uses it. That section is now first. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 7646867..2ebc95f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,15 @@ [![github action status](https://github.com/hexlet-components/js-types/workflows/Node%20CI/badge.svg)](https://github.com/hexlet-components/js-types/actions) +## Зачем это нужно + +Помеченные данные: к значению приклеивается ярлык типа, и дальше по нему можно +ветвиться. Так собирают диспетчеризацию вручную, до того как в языке появятся +классы и интерфейсы. + +Нужна курсам, где показывают, что «тип» это не магия компилятора, а всего лишь +ещё одно значение рядом с данными. + ## Install ```sh