Skip to content

Commit 86c7d84

Browse files
author
Nathan Fenner
committed
update missing baselines
1 parent 1cad8ed commit 86c7d84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/baselines/reference/checkJsxChildrenProperty15.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tests/cases/conformance/jsx/file.tsx(12,13): error TS2322: Type '{ children: Ele
1717

1818
// Not OK (excess children)
1919
const k3 = <Tag children={<div></div>} />;
20-
~~~~~~~~~~~~~~~~~~~~~~
20+
~~~~~~~~
2121
!!! error TS2322: Type '{ children: Element; }' is not assignable to type 'IntrinsicAttributes'.
2222
!!! error TS2322: Property 'children' does not exist on type 'IntrinsicAttributes'.
2323
const k4 = <Tag key="1"><div></div></Tag>;

tests/baselines/reference/tsxUnionElementType4.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tests/cases/conformance/jsx/file.tsx(34,22): error TS2322: Type '{ prop: true; }
4242
!!! error TS2322: Type 'true' is not assignable to type 'never'.
4343
!!! related TS6500 tests/cases/conformance/jsx/file.tsx:3:36: The expected type comes from property 'x' which is declared here on type 'IntrinsicAttributes & IntrinsicClassAttributes<RC1 | RC2> & { x: number; } & { children?: ReactNode; } & { x: string; } & { children?: ReactNode; }'
4444
let b = <PartRCComp x={10} />
45-
~~~~~~
45+
~
4646
!!! error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<RC4> & { children?: ReactNode; }'.
4747
!!! error TS2322: Property 'x' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<RC4> & { children?: ReactNode; }'.
4848
let c = <EmptyRCComp prop />;

0 commit comments

Comments
 (0)