Skip to content

Commit d4539bb

Browse files
author
Yui T
committed
Update baaselines
1 parent b7c54f3 commit d4539bb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests/cases/conformance/jsx/file.tsx(16,42): error TS2339: Property 'prop1' does
66

77
declare function Component<U>(l: U): JSX.Element;
88
function createComponent<T extends { prop: number }>(arg: T) {
9-
// let a1 = <Component {...arg} />;
9+
let a1 = <Component {...arg} />;
1010
let a2 = <Component {...arg} prop1 />;
1111
}
1212

tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React = require('react')
33

44
declare function Component<U>(l: U): JSX.Element;
55
function createComponent<T extends { prop: number }>(arg: T) {
6-
// let a1 = <Component {...arg} />;
6+
let a1 = <Component {...arg} />;
77
let a2 = <Component {...arg} prop1 />;
88
}
99

@@ -23,7 +23,7 @@ define(["require", "exports", "react"], function (require, exports, React) {
2323
"use strict";
2424
exports.__esModule = true;
2525
function createComponent(arg) {
26-
// let a1 = <Component {...arg} />;
26+
var a1 = <Component {...arg}/>;
2727
var a2 = <Component {...arg} prop1/>;
2828
}
2929
function Bar(arg) {

tests/cases/fourslash/tsxQuickInfo6.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
//// }
1515

1616
verify.quickInfos({
17-
1: "function ComponentSpecific<{}>(l: {\n prop: {};\n}): any",
18-
2: "function ComponentSpecific<{}>(l: {\n prop: {};\n}): any"
17+
1: "function ComponentSpecific<number>(l: {\n prop: number;\n}): any",
18+
2: "function ComponentSpecific<\"hello\">(l: {\n prop: \"hello\";\n}): any"
1919
});

tests/cases/fourslash/tsxQuickInfo7.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
//// let a3 = <Overloa/*4*/dComponent {...arg1} ignore-prop />;
1616
//// let a4 = <Overloa/*5*/dComponent />;
1717
//// let a5 = <Overloa/*6*/dComponent {...arg2} ignore-prop="hello" {...arg1} />;
18-
//// let a6 = <Overloa/*7*/dComponent {...arg2} ignore-prop {...arg1} />;
18+
//// let a6 = <Overloa/*7*/dComponent {...arg1} ignore-prop {...arg2} />;
1919
//// }
2020

2121
verify.quickInfos({
22-
1: "function OverloadComponent(): any (+2 overloads)",
23-
2: "function OverloadComponent(): any (+2 overloads)",
24-
3: "function OverloadComponent(): any (+2 overloads)",
25-
4: "function OverloadComponent(): any (+2 overloads)",
22+
1: "function OverloadComponent<number>(attr: {\n b: number;\n a?: string;\n \"ignore-prop\": boolean;\n}): any (+2 overloads)",
23+
2: "function OverloadComponent<boolean, string>(attr: {\n b: string;\n a: boolean;\n}): any (+2 overloads)",
24+
3: "function OverloadComponent<boolean, string>(attr: {\n b: string;\n a: boolean;\n}): any (+2 overloads)",
25+
4: "function OverloadComponent<number>(attr: {\n b: number;\n a?: string;\n \"ignore-prop\": boolean;\n}): any (+2 overloads)",
2626
5: "function OverloadComponent(): any (+2 overloads)",
27-
6: "function OverloadComponent(): any (+2 overloads)",
28-
7: "function OverloadComponent(): any (+2 overloads)"
27+
6: "function OverloadComponent<boolean, number>(attr: {\n b: number;\n a: boolean;\n}): any (+2 overloads)",
28+
7: "function OverloadComponent<boolean, string>(attr: {\n b: string;\n a: boolean;\n}): any (+2 overloads)"
2929
});

0 commit comments

Comments
 (0)