@@ -17,7 +17,7 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): err
1717 Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
1818 Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
1919 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'.
2121 Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
2222tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,12): error TS2769: No overload matches this call.
2323 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
8484!!! error TS2769: Type '{ extra: true; goTo: string; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
8585!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
8686!!! 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'.
8888!!! error TS2769: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
8989 const b4 = <MainButton goTo="home" extra />; // goTo has type "home" | "contact"
9090 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments