retain return types on ObjectMethods in transform-es2015-shorthand-properties (#4670)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// @flow
|
||||
var obj = {
|
||||
method(a: string): number {
|
||||
return 5 + 5;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
// @flow
|
||||
var obj = {
|
||||
method: function (a /*: string*/) /*: number*/ {
|
||||
return 5 + 5;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-shorthand-properties", "transform-flow-comments"]
|
||||
}
|
||||
Reference in New Issue
Block a user