type-fest is a TypeScript utility types library that offers a curated, battle-tested suite of type definitions and type transformations that aren’t included in the TypeScript standard library. It provides types like Except, Merge, LiteralUnion, Writable, Promisable, PartialDeep, JsonObject, and many others that solve everyday typing needs in complex TypeScript codebases. Developers pull in just the types they need, which makes code more expressive and safer without reinventing tricky type logic. Because many of the types in type-fest are things “that should have been built-in,” it’s widely adopted across TypeScript projects that need more advanced static typing capabilities. The package is modular, well documented, and regularly maintained to stay compatible with evolving TypeScript versions and features. It plays a central role in type-heavy codebases (frameworks, utilities, libraries) by reducing repetition and giving reliable tools for type-level programming.

Features

  • Deep types for making nested objects optional or required (e.g. PartialDeep, RequiredDeep)
  • Utility types for merging / overriding properties (Merge, MergeDeep, OverrideProperties)
  • Types to enforce key constraints: RequireAtLeastOne, RequireExactlyOne, MergeExclusive etc.
  • Types for readability and manipulation: turning readonly fields into mutable (Writable, WritableDeep), converting property names (like CamelCasedProperties, etc.), trimming strings, dealing with unions etc.
  • JSON-related types: JsonValue, JsonObject, JsonArray etc. for better typing of JSON data
  • Conditional / utility types: Extracting nested paths, handling index signatures, checking assignability, etc.

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Creative Commons Attribution License

Follow type-fest

type-fest Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of type-fest!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Libraries

Registered

2025-09-19