From 516fbdc7ecbc6d1adfa653f902ec0b51b9dd3d7c Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Tue, 7 Jun 2022 16:42:34 +0100 Subject: [PATCH] Remove invalid type example --- test/typescript/Trans.test.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/test/typescript/Trans.test.tsx b/test/typescript/Trans.test.tsx index 0197b0c7e..038ab1596 100644 --- a/test/typescript/Trans.test.tsx +++ b/test/typescript/Trans.test.tsx @@ -26,7 +26,7 @@ function objectComponents() { return }} defaults="Hello " />; } -function MyComponent(): React.ReactElement { +function MyComponent() { return <>world; } @@ -34,21 +34,6 @@ function objectCustomComponents() { return }} defaults="Hello " />; } -function objectCustomComponentsShouldError() { - return ( - - ); -} - function constObjectComponents() { const constObject = { Btn: