Skip to content

Latest commit

 

History

History

type

$mol_type

Collection of TypeScript meta types for complex logic.

Type Asserts

MAM Usage

type first_of_tuple = $mol_type_assert<
	$mol_type_head<[ 1 , 2 , 3 ]> ,
	1
>

NPM usage

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
>

Edit $mol_type example

Similar Projects