[[Early thoughts around conditional types]]
- Currently have
T extends Foo
as a type operator that returnstrue
orfalse
.- Seems very strange as to what that actually means:
declare function foo<T>(x: T, y: T extends string): void;
- This function takes an
x
, and ifx
is astring
,y
must betrue
or otherwisefalse
.
- Seems very strange as to what that actually means: