You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-fest

A collection of essential TypeScript types

4.41.0
latest
Source
npmnpm
Version published
Weekly downloads
209M
-9.06%
Maintainers
1
Weekly downloads
 
Created

What is type-fest?

The type-fest package provides a collection of essential TypeScript types for use in a wide range of applications. It includes utility types, primitive types, and complex object types to enhance TypeScript's static typing capabilities.

What are type-fest's main functionalities?

Primitive types

Includes types like LiteralUnion, Primitive, and Promisable, which help with defining literals, primitive values, and promise-like structures.

{"isPrimitive": true}

Basic utilities

Provides utility types such as Except, Mutable, ReadonlyDeep, and many others that help manipulate and transform types in various ways.

{"isEmptyArray": array.length === 0}

Object types

Contains types for working with objects, such as Merge and RequireAtLeastOne, which assist in merging types and ensuring at least one property is present, respectively.

{"isObjectClean": Object.keys(object).length === 0 && object.constructor === Object}

Conditional types

Includes conditional types like ConditionalExcept and ConditionalKeys, which apply conditions to filter keys or properties of types.

{"isTruthy": T extends false | '' | 0 | null | undefined ? false : true}

Other packages similar to type-fest

Keywords

typescript

FAQs

Package last updated on 06 May 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.