mol_type_all
TypeScript icon, indicating that this package has built-in type declarations

0.0.1345 • Public • Published

$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

Package Sidebar

Install

npm i mol_type_all

Weekly Downloads

634

Version

0.0.1345

License

none

Unpacked Size

50.2 kB

Total Files

26

Last publish

Collaborators

  • jin