@@ -17,7 +17,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): err
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
- Type '{ extra: true; goTo: string ; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
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
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.
@@ -84,7 +84,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): err
84
84
!!! error TS2769: Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
85
85
!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
86
86
!!! error TS2769: Overload 2 of 2, '(linkProps: LinkProps): Element', gave the following error.
87
- !!! error TS2769: Type '{ extra: true; goTo: string ; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
87
+ !!! error TS2769: Type '{ extra: true; goTo: "home" ; }' is not assignable to type 'IntrinsicAttributes & LinkProps'.
88
88
!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
89
89
const b4 = <MainButton goTo="home" extra />; // goTo has type "home" | "contact"
90
90
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments