Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Idea for better type assertion #13

Open
nin-jin opened this issue Oct 2, 2019 · 2 comments
Open

Idea for better type assertion #13

nin-jin opened this issue Oct 2, 2019 · 2 comments
Labels
Accept PRs Repo's owner prefer to accept pull request from others

Comments

@nin-jin
Copy link

nin-jin commented Oct 2, 2019

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

	type should_be_same_but_without_head = Assert<
		Tail< [ 666 , 777 ] > ,
		[ 777 ]
	>
@KSXGitHub KSXGitHub added the Accept PRs Repo's owner prefer to accept pull request from others label Oct 2, 2019
@KSXGitHub
Copy link
Member

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

@nin-jin
Copy link
Author

nin-jin commented Oct 17, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accept PRs Repo's owner prefer to accept pull request from others
Projects
None yet
Development

No branches or pull requests

2 participants