Open aryaemami59 opened 2 months ago
Yeah, I don't remember the thinking behind PositiveExpectTypeOf
and NegativeExpectTypeOf
and ExpectTypeOf
being named that way - they're not types for the expectTypeOf
function, they're asserter-things. Maybe renaming them is a better option. We should check if vitest/anything else publicly on GitHub is using the current names though.
Sounds good, I can look into it.
@mmkal Vitest is using ExpectTypeOf
here, I still think we should rename that one too, what do you think?
Hmm vitest is exporting it which means god knows how many people are using it!
Yeah that's unfortunate.
I guess we can hold off on renaming ExpectTypeOf
but we can probably go ahead with renaming _ExpectTypeOf
, NegativeExpectTypeOf
and PositiveExpectTypeOf
. What do you think?
I'm getting the heebie-jeebies. While the naming is not totally appropriate, it's basically consistent right now. I don't want to make it inconsistent.
I think the most I'd be comfortable with pre-v1 would be _ExpectTypeOf
-> CreateExpectTypeOf
or something. Not sure it's even worth it though to be honest. Maybe this should just be a v2 thing.
If
_ExpectTypeOf
is going to be exported, we should probably rename it to something else to avoid confusion between_ExpectTypeOf
andExpectTypeOf
.