I wish TypeScript had `type Foo = number?` as a shorthand for `type Foo = number | undefined`.
-
-
I really don’t understand why FB created Flow in the first place... everybody is switching to TypeScript or just stays on plain JS, no need for something else if you ask me.
-
We had Flow before this massive adoption of TS. Also, it had better/easier integration.
- 2 more replies
New conversation -
-
-
This Tweet is unavailable.
- 1 more reply
-
-
-
Doesn't this allow also `null`? I think
@sindresorhus wants just `undefined`Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I found myself missing this as well. I don’t understand the pushback in other replies, ? Is already used to do a similar thing in a bunch of other places in TS
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 