conditional-type-checks icon indicating copy to clipboard operation
conditional-type-checks copied to clipboard

Add a function function eq<A, B>(x: IsExact<A, B>) {}

Open Jack-Works opened this issue 5 years ago • 1 comments

// before
asserts<IsExact<T1, T2>>(true)
// after
eq<T1, T2>(true)

Jack-Works avatar Jun 03 '20 05:06 Jack-Works

Not speaking for the maintainers, but based on this comment a limited, but verbose, API is preferable. I tend to agree when talking about testing interfaces as well, fwiw. If there's anywhere readability and verbosity is important, its in the "self-documentation"

kevinpeno avatar Mar 10 '22 04:03 kevinpeno