types-helpers
Version:
LibrerΓa de utilidades avanzadas para tipos en TypeScript
81 lines (60 loc) β’ 1.43 kB
Plain Text
# π§ helper types
A collection of advanced types in TypeScript that help you manipulate, transform, and validate complex type structures in a safe and expressive way.
> π Ideal for form-based architectures, deep validation, object flattening, type manipulation, and more.
## π¦Installation
``` tap
npm install types-helpers
```
## π Quick Use
```ts
import {
Flat,
DeepReadonly,
} from "types-helpers"
```
This is an example for Flat:
```ts
type Entry = {
usuario: {
nombre: string;
edad: number;
};
direccion: {
ciudad: string;
};
};
type result = Flat<Entry>;
```
## π API structure
```
types-helpers/
βββ deep/
β βββ DeepPartial
β βββ DeepReadonly
βββ flatten/
β βββ Flat
β βββ Flatten
β βββ FilterFlat
β βββ IsPrimitive
βββ transform/
β βββ Split
β βββ BuildPath
β βββ MergeAll
β βββ Create handlers
βββ validators/
β βββ Validate
β βββ Validators
```
## π License
MIT Β© 2025 Wilson GutiΓ©rrez
## π€ Contributions
Pull requests and suggestions are welcome!
Help us continue improving this useful library for the entire TypeScript community. π
## β Credits
Created with β€οΈ by [Wilson GutiΓ©rrez](https://github.com/wilsongutierrez-01)