type-fest is a collection of advanced TypeScript utility types. You can import specific types from the package to perform complex type transformations, validations, and constraints that are not available in the standard TypeScript library.
Common categories of utilities include:
- Object Manipulation:
Merge, OmitDeep, PartialDeep, RequiredDeep, PickDeep, RenameKeys. - String Manipulation:
CamelCase, KebabCase, PascalCase, SnakeCase, Split, Replace. - Array/Tuple Manipulation:
FixedLengthArray, ArrayTail, TupleToUnion, UnionToTuple. - Validation/Constraints:
NonEmptyString, Integer, LiteralUnion, Exact. - Advanced Logic:
UnionToIntersection, ConditionalPick, Simplify.