[[Early thoughts around conditional types]]
- Currently have
T extends Fooas a type operator that returnstrueorfalse.- 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 ifxis astring,ymust betrueor otherwisefalse.
- Seems very strange as to what that actually means: