### Install helpertypes with npm Source: https://github.com/wessberg/helpertypes/blob/master/README.md Install the helpertypes package using npm. ```bash $ npm install helpertypes ``` -------------------------------- ### Install helpertypes with Yarn Source: https://github.com/wessberg/helpertypes/blob/master/README.md Install the helpertypes package using Yarn. ```bash $ yarn add helpertypes ``` -------------------------------- ### Install helpertypes with pnpm Source: https://github.com/wessberg/helpertypes/blob/master/README.md Install the helpertypes package using pnpm. ```bash $ pnpm add helpertypes ``` -------------------------------- ### Use ElementOf type from helpertypes Source: https://github.com/wessberg/helpertypes/blob/master/README.md Import the ElementOf type from helpertypes and use it to extract the union of element types from a const array. ```ts import {ElementOf} from "helpertypes"; const FAVORITE_FOOD = ["pizza", "burger", "lasagna"] as const; // "pizza"|"burger"|"lasagna" type FavoriteFood = ElementOf; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.