fbjs icon indicating copy to clipboard operation
fbjs copied to clipboard

type annotation in keymirror doesn't get reprinted nicely, is syntax error

Open zpao opened this issue 6 years ago • 0 comments

var keyMirror = function<T: {}>(obj: T): $ObjMapi<T, <K>(K) => K> {

gets reprinted as

var keyMirror = function<T: {}>(obj: T): $ObjMapi<T, <K>(: K) => K> {

which doesn't parse. This will need to be fixed in Babel or we'll need a different annotation here that re-prints.

Note: I shipped this in 0.8.13. I'm reverting that changeset and publishing 0.8.14 now.

zpao avatar Jul 26 '17 01:07 zpao