0.0.19 • Published 3 years ago
helpertypes v0.0.19
A collection of TypeScript helper types
Description
This is a simple collection of general purpose helper types for TypeScript that can be used across a wide variety of projects.
Features
- General-purpose
- Small
- Just a few types, nothing else
Backers
BubblesTwitter: @usebubbles | Christopher Blanchard | Ideal Postcodes | Xerox |
Patreon
Table of Contents
Install
npm
$ npm install helpertypes
Yarn
$ yarn add helpertypes
pnpm
$ pnpm add helpertypes
Usage
Simply import the types you want from helpertypes
:
import {ElementOf} from "helpertypes";
const FAVORITE_FOOD = ["pizza", "burger", "lasagna"] as const;
// "pizza"|"burger"|"lasagna"
type FavoriteFood = ElementOf<typeof FAVORITE_FOOD>;
Contributing
Do you want to contribute? Awesome! Please follow these recommendations.
Maintainers
Frederik WessbergTwitter: @FredWessbergGithub: @wessbergLead Developer |
FAQ
Will this library grow over time?
Yes, but only for helper types that have common applicability. Feel free to submit a PR, and we'll take a look at it then.
License
MIT © Frederik Wessberg (@FredWessberg) (Website)
0.0.19
3 years ago
0.0.18
4 years ago
0.0.13
4 years ago
0.0.14
4 years ago
0.0.15
4 years ago
0.0.16
4 years ago
0.0.17
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.5
4 years ago
0.0.6
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago