typescript-tuple icon indicating copy to clipboard operation
typescript-tuple copied to clipboard

Idea for better type assertion

Open nin-jin opened this issue 4 years ago • 2 comments

https://github.com/eigenmethod/mol/tree/master/type

	type should_be_same_but_without_head = Assert<
		Tail< [ 666 , 777 ] > ,
		[ 777 ]
	>

nin-jin avatar Oct 02 '19 05:10 nin-jin

I don't really want to write type names (such as should_be_same_bu_without_head).

KSXGitHub avatar Oct 02 '19 05:10 KSXGitHub

This is short human readable description of test case. More examples: https://github.com/eigenmethod/mol/blob/master/type/keys/extract/extract.test.ts

nin-jin avatar Oct 17 '19 17:10 nin-jin