JS Type Checker Wish List: Regex validated strings
type HexColor = /#[0-9a-f]+/i;
const color: HexColor = '#eee'; // fine
const color: HexColor = 'red'; // error!
-
-
TypeScript is *so* good- I didn't realize how much I wanted conditional types (Foo extends Bar ? Baz : Qux) until I got them
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
As of 2018 I don't think I could, in good conscience, take a job that expected me to write non-TypeScript javascript.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 
