I understand that TypeScript is structural, but allowing this really threw me off: > const foo: {} = '';
-
-
Replying to @sebmck
Related - in flow, how do I say "Things which have a length property (including strings)?"
1 reply 0 retweets 0 likes -
That works in Flow too :)
1 reply 0 retweets 0 likes
The question was more around making this work: const foo: {length:number} = ''; I'm not sure how to type that in Flow?
12:59 PM - 29 Jul 2019
0 replies
0 retweets
1 like
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 