@hexlet/tagged-types
v1.1.1
Published
[](https://github.com/hexlet-components/js-types/actions)
Downloads
111
Readme
js-types
Install
npm install @hexlet/tagged-typesUsage example
import { attach, typeTag, contents } from '@hexlet/tagged-types';
const data = 'text, pair, list or others';
const tag = attach('typeOfTag', data);
// ('typeOfTag', 'text, pair, list or others')
typeTag(tag); // 'typeOfTag'
contents(tag); // 'text, pair, list or others'For more information, see the Full Documentation
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet (in Russian).

