A TypeScript library providing advanced utility generic types such as DeepOptional, DeepOmit, and DeepPaths. Version 1.1.0 allows recursive manipulation of deeply nested object properties using dot-separated paths or template literal strings, with support for arrays. It is released under the MIT license and is intended for type-level programming in TypeScript projects. Unlike simpler utility types libraries (e.g., type-fest), this package focuses specifically on deep path-based transformations.
npm install advanced-utility-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates usage of DeepOptional, DeepOmit, and DeepPaths to manipulate deeply nested object types.
Upgrade TypeScript to at least version 4.1.
Limit the depth of nested types or use alternative types with manual path specification.
When using array paths like `a.b.${number}.c`, only the leaf property (c) becomes optional, not the array indices.Ensure that after omission, the resulting type still matches your expected shape; consider using DeepOptional instead.
Reduce nesting depth or use explicit path strings instead of DeepPaths.
Install the package: npm install advanced-utility-types, then import as named export.
Use a template literal: `a.b.${number}.c` instead of `a.b.number.c`.