Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 4, 2024 via pnpm

type-fest 0.21.3

A collection of essential TypeScript types
Package summary
Share
0
issues
1
license
1
(MIT OR CC0-1.0)
Package created
13 Mar 2019
Version published
10 Mar 2021
Maintainers
1
Total deps
1
Direct deps
0
License
(MIT OR CC0-1.0)

Issues

0
This package has no issues

Licenses

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.21.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of type-fest 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does type-fest do?

Type-fest is a resourceful, broad, and useful collection of TypeScript types. Many of these types could very easily be regarded as extensions that should've been built-in. Type-fest offers a delightful selection ranging from basic elementary types like Primitive to utility types such as Writable. What's more, it even provides types for intricate structures like a PackageJson file! All of these types come with the goal of simplifying TypeScript programming and making it more structurally efficient and readable. This package is meticulously maintained and regularly updated.

How do you use type-fest?

Type-fest can be used by simply installing it via npm with the command npm install type-fest. Once you've installed the package, you can import the necessary types into your TypeScript files and start using them immediately. For instance, you might import the type Except and use it to create a new type:

import type {Except} from 'type-fest';

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

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

In this snippet, FooWithoutRainbow is a new type that has all properties of Foo except for 'rainbow'. It should be noted that, since type-fest only provides TypeScript types, which are removed during compilation, it does not propagate to the final JavaScript that's being shipped. It's just a development utility.

Where are the type-fest docs?

Type-fest's documentation and API reference can be found within the project's GitHub repository. The repository's main README file provides a comprehensive list of