mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
Update baseline adding of "__esModule"
This commit is contained in:
parent
e5cfe5c348
commit
a52ccff74e
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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"/>;
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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"
|
||||
};
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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}/>;
|
||||
|
||||
@ -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}/>;
|
||||
|
||||
@ -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/>;
|
||||
|
||||
@ -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}/>;
|
||||
|
||||
@ -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/>;
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user