Collection of TypeScript meta types for complex logic.
type first_of_tuple = $mol_type_assert<
$mol_type_head<[ 1 , 2 , 3 ]> ,
1
>
npm install mol_type_all
import {
$mol_type_assert as Assert ,
$mol_type_head as Head ,
} from 'mol_type_all'
type first_of_tuple = Assert<
Head<[ 1 , 2 , 3 ]> ,
1
>
piotrwitek/utility-types
- Collection of utility types, complementing TypeScript built-in mapped types and aliases (think "lodash" for static types).pirix-gh/ts-toolbelt
- All the types you need for TypeScript.ksxnodemodules/typescript-tuple
- Generics to work with tuples in TypeScript