0.1.5 • Published 9 months ago
@bemedev/types v0.1.5
@bemedev/types
A collection of utility TypeScript types for application development.
Installation
npm install @bemedev/types
# or
yarn add @bemedev/types
# or
pnpm add @bemedev/typesFeatures
- Types for array manipulation
- Types for object manipulation
- Types for promises
- Types for strings
- Types for unions
- Types for use cases
- Types for domain
- Types for nullable values
Usage
import { IndexOfArray, ReverseArray } from '@bemedev/types';
// Example with IndexOfArray
type Indices = IndexOfArray<['a', 'b', 'c']>; // 0 | 1 | 2
// Example with ReverseArray
type Reversed = ReverseArray<['a', 'b', 'c']>; // ['c', 'b', 'a']Documentation
For more details on the available types, check the test files:
src/types/*.test-d.ts.
CHANGE_LOG
0.1.5 - 2025/02/18 16:00
Added
- Add type TrueObject
- Add function for FlatMapByKeys
0.1.4 - 2025/02/17 16:30
Added
- Types for array manipulation
- Types for object manipulation
- Types for promises
- Types for strings
- Types for unions
- Types for use cases
- Types for domain
- Types for nullable values
Changed
- N/A
Deprecated
- N/A
Removed
- N/A
Fixed
- N/A
License
MIT
Auteur
chlbri (bri_lvi@icloud.com)