Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

helpertypes

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helpertypes

A collection of TypeScript helper types

  • 0.0.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source
Logo

A collection of TypeScript helper types

Downloads per month NPM version Dependencies Contributors code style: prettier License: MIT Support on Patreon

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

BubblesChristopher BlanchardIdeal PostcodesXerox
Bubbles
Twitter: @usebubbles
Christopher BlanchardIdeal PostcodesXerox

Patreon

Patrons on 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 Wessberg
Frederik Wessberg
Twitter: @FredWessberg
Github: @wessberg
Lead 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)

Keywords

FAQs

Package last updated on 03 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc