This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// @flow
|
||||
class C {
|
||||
m(x: number): string {
|
||||
return 'a';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
// @flow
|
||||
var C = function () {
|
||||
function C() {
|
||||
babelHelpers.classCallCheck(this, C);
|
||||
}
|
||||
|
||||
C.prototype.m = function m(x /*: number*/) /*: string*/ {
|
||||
return 'a';
|
||||
};
|
||||
|
||||
return C;
|
||||
}();
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"presets": [["es2015", { "loose": true }]],
|
||||
"plugins": ["transform-flow-comments", "external-helpers"]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// @flow
|
||||
class C {
|
||||
m(x: number): string {
|
||||
return 'a';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
// @flow
|
||||
var C = function () {
|
||||
function C() {
|
||||
babelHelpers.classCallCheck(this, C);
|
||||
}
|
||||
|
||||
babelHelpers.createClass(C, [{
|
||||
key: 'm',
|
||||
value: function m(x /*: number*/) /*: string*/ {
|
||||
return 'a';
|
||||
}
|
||||
}]);
|
||||
return C;
|
||||
}();
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"presets": ["es2015"],
|
||||
"plugins": ["transform-flow-comments", "external-helpers"]
|
||||
}
|
||||
Reference in New Issue
Block a user