Update baseline adding of "__esModule"

This commit is contained in:
Kanchalai Tanglertsampan 2017-02-14 15:21:25 -08:00
parent e5cfe5c348
commit a52ccff74e
33 changed files with 33 additions and 0 deletions

View File

@ -41,6 +41,7 @@ const d1 = <NoOverload1 {...{goTo:"home"}} extra />; // goTo has type "home" |
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
function MainButton(props) {
var linkProps = props;
if (linkProps.goTo) {

View File

@ -29,6 +29,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
var _this = this;
exports.__esModule = true;
var React = require("react");
var BigGreeter = (function (_super) {
__extends(BigGreeter, _super);

View File

@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -26,6 +26,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -36,6 +36,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Opt = (function (_super) {
__extends(Opt, _super);

View File

@ -44,6 +44,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var obj = {};
var obj1 = {

View File

@ -43,6 +43,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var obj = {};
var obj1 = {

View File

@ -32,6 +32,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -34,6 +34,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -48,6 +48,7 @@ var __extends = (this && this.__extends) || (function () {
};
})();
var _this = this;
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -46,6 +46,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Poisoned = (function (_super) {
__extends(Poisoned, _super);

View File

@ -30,6 +30,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var TextComponent = (function (_super) {
__extends(TextComponent, _super);

View File

@ -37,6 +37,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var TextComponent = (function (_super) {
__extends(TextComponent, _super);

View File

@ -39,6 +39,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var obj = {};
var obj1 = {

View File

@ -37,6 +37,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var Opt = (function (_super) {
__extends(Opt, _super);

View File

@ -43,6 +43,7 @@ const e6 = <TestingOptional y1 y3 y2={10} />
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
// OK
var c1 = <OneThing yxx='ok'/>;
var c2 = <OneThing yy={100} yy1="hello"/>;

View File

@ -36,6 +36,7 @@ const c10 = <OneThing {...obj2} yy1="boo" />;
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
var obj = {
yy: 10,
yy1: "hello"

View File

@ -38,6 +38,7 @@ const e2 = <TestingOptional y1="hello" y2={1000} y3 />
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
var obj = {
yy: 10,
yy1: "hello"

View File

@ -60,6 +60,7 @@ const b8 = <MainButton data-format />; // incorrect type for specified hyphanat
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
var obj0 = {
to: "world"
};

View File

@ -61,6 +61,7 @@ const b12 = <MainButton data-format="Hello world" />
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
var obj = {
children: "hi",
to: "boo"

View File

@ -34,6 +34,7 @@ let i = <InferParamComponent values={[1, 2, 3, 4]} selectHandler={(val) => { }}
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
// OK
function Baz(key1, value) {
var a0 = <ComponentWithTwoAttributes key1={key1} value={value}/>;

View File

@ -36,6 +36,7 @@ let i = <InferParamComponent values={[1, 2, 3, 4]} selectHandler={(val: string)
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
// Error
function Bar(arg) {
var a1 = <ComponentSpecific1 {...arg} ignore-prop={10}/>;

View File

@ -27,6 +27,7 @@ function createLink(func: (a: number)=>void) {
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
// OK
function Baz(arg1, arg2) {
var a0 = <OverloadComponent {...arg1} a="hello" ignore-prop/>;

View File

@ -15,6 +15,7 @@ function Baz<T extends {b: number}, U extends {a: boolean, b:string}>(arg1: T, a
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
// Error
function Baz(arg1, arg2) {
var a0 = <OverloadComponent a={arg1.b}/>;

View File

@ -23,6 +23,7 @@ function Bar<T extends { prop: number }>(arg: T) {
//// [file.jsx]
define(["require", "exports", "react"], function (require, exports, React) {
"use strict";
exports.__esModule = true;
function createComponent(arg) {
var a1 = <Component {...arg}/>;
var a2 = <Component {...arg} prop1/>;

View File

@ -15,6 +15,7 @@ var SFCComp = SFC1 || SFC2;
//// [file.js]
"use strict";
exports.__esModule = true;
var React = require("react");
function SFC1(prop) {
return React.createElement("div", null, "hello");

View File

@ -15,6 +15,7 @@ var SFCComp = SFC1 || SFC2;
//// [file.js]
"use strict";
exports.__esModule = true;
var React = require("react");
function SFC1(prop) {
return React.createElement("div", null, "hello");

View File

@ -49,6 +49,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var RC1 = (function (_super) {
__extends(RC1, _super);

View File

@ -48,6 +48,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
var React = require("react");
var RC1 = (function (_super) {
__extends(RC1, _super);

View File

@ -23,6 +23,7 @@ let b = <SFC2AndEmptyComp x />
//// [file.js]
"use strict";
exports.__esModule = true;
var React = require("react");
function EmptySFC1() {
return React.createElement("div", null, "hello");

View File

@ -26,6 +26,7 @@ let d = <SFC2AndEmptyComp data-prop />;
//// [file.js]
"use strict";
exports.__esModule = true;
var React = require("react");
function EmptySFC1() {
return React.createElement("div", null, "Hi");