tonivj5 / type-fest

A collection of essential TypeScript types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



type-fest

A collection of essential TypeScript types



Build Status

Many of the types here should have been built-in.

Either add this package as a dependency or copy-paste the needed types. No credit required.

PR welcome for additional commonly needed types and docs improvements.

Install

$ npm install type-fest

Usage

import {Omit} from 'type-fest';

type Foo = {
	unicorn: string;
	rainbow: boolean;
};

type FooWithoutRainbow = Omit<Foo, 'rainbow'>;
//=> {unicorn: string}

API

See the types file.

License

(MIT OR CC0-1.0)

About

A collection of essential TypeScript types

License:MIT License


Languages

Language:TypeScript 100.0%