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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it 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