@virtual-registry/ts-utils
v1.0.2
Published
A collection of TypeScript utility types for advanced type-level transformations.
Maintainers
Readme
A lightweight set of TypeScript utility types for advanced type-level transformations.
This package provides strongly-typed helpers to extract values and keys from deeply nested object types, and to convert deeply readonly structures into mutable ones — all while preserving important primitives and special types like Date, Function, and arrays.
🚀 Features
ValuesOf<T>– Extract all terminal value types from nested object typesKeysOf<T>– Extract all terminal key types from nested object typesMutable<T>– Recursively removereadonlyfrom nested typesIndexOf<T>– Extracts the numeric index types from a tuple or fixed-length array- Smart handling of special types (
Date,Function, arrays, etc.)
📦 Installation
npm install @virtual-registry/ts-utils
# or
yarn add @virtual-registry/ts-utils