You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,34 +1,34 @@
1
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2769: No overload matches this call.
1
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,64): error TS2769: No overload matches this call.
2
2
Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error.
3
3
Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
4
4
Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
5
5
Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error.
6
6
Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
7
7
Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
8
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2769: No overload matches this call.
8
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,12): error TS2769: No overload matches this call.
9
9
Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error.
10
10
Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
11
11
Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
12
12
Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error.
13
13
Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
14
14
Property 'onClick' does not exist on type 'IntrinsicAttributes & LinkProps'.
15
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,13): error TS2769: No overload matches this call.
15
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2769: No overload matches this call.
16
16
Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error.
17
17
Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
18
18
Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
19
19
Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error.
20
20
Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
21
21
Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
22
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,13): error TS2769: No overload matches this call.
22
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,12): error TS2769: No overload matches this call.
23
23
Overload 1 of 2, '(buttonProps: ButtonProps): Element', gave the following error.
24
24
Type '{ goTo: string; extra: true; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
25
25
Property 'goTo' does not exist on type 'IntrinsicAttributes & ButtonProps'.
26
26
Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error.
27
27
Type '{ goTo: "home"; extra: true; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
28
28
Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
29
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,13): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
29
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,65): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
30
30
Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
31
-
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,13): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
31
+
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): error TS2322: Type '{ extra: true; goTo: "home"; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
32
32
Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/tsxAttributeResolution11.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'.
1
+
tests/cases/conformance/jsx/file.tsx(11,22): error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'.
2
2
Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
3
3
4
4
@@ -27,7 +27,7 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ bar: string;
27
27
28
28
// Should be an OK
29
29
var x = <MyComponent bar='world' />;
30
-
~~~~~~~~~~~
30
+
~~~
31
31
!!! error TS2322: Type '{ bar: string; }' is not assignable to type 'IntrinsicAttributes & { ref?: string; }'.
32
32
!!! error TS2322: Property 'bar' does not exist on type 'IntrinsicAttributes & { ref?: string; }'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/tsxAttributeResolution15.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
1
+
tests/cases/conformance/jsx/file.tsx(11,21): error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
2
2
Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
3
3
tests/cases/conformance/jsx/file.tsx(14,44): error TS7017: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature.
4
4
@@ -15,7 +15,7 @@ tests/cases/conformance/jsx/file.tsx(14,44): error TS7017: Element implicitly ha
15
15
16
16
// Error
17
17
let a = <BigGreeter prop1="hello" />
18
-
~~~~~~~~~~
18
+
~~~~~
19
19
!!! error TS2322: Type '{ prop1: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
20
20
!!! error TS2322: Property 'prop1' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<BigGreeter> & { children?: ReactNode; }'.
0 commit comments