JAEGIS-METHOD-v1.0\node_modules\type-fest\readme

type-fest A collection of essential TypeScript types


arrow-up-right

Many of the types here should have been built-in. You can help by suggesting some of them to the TypeScript projectarrow-up-right.

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. Read the contributing guidelinesarrow-up-right first.

Install

$ npm install type-fest

Requires TypeScript >=3.4

Usage

import {Except} from 'type-fest';

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

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

API

Click the type names for complete docs.

Basic

Utilities

Template literal types

Note: These require TypeScript 4.1 or newerarrow-up-right.

Miscellaneous

Declined types

If we decline a type addition, we will make sure to document the better solution here.

Tips

Built-in types

There are many advanced types most users don't know about.

You can find some examples in the TypeScript docsarrow-up-right.

Maintainers

License

(MIT OR CC0-1.0)


Get professional support for this package with a Tidelift subscriptionarrow-up-right Tidelift helps make open source sustainable for maintainers while giving companies assurances about security, maintenance, and licensing for their dependencies.

Last updated