From fe5b6a976a386e2e4efd3330cb3bb42cdb578522 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Tue, 1 Nov 2022 17:19:48 +0800 Subject: [PATCH] test(#42003): add a test case for new typing --- .../typescript-basic/app/pages/index.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/test/production/typescript-basic/app/pages/index.tsx b/test/production/typescript-basic/app/pages/index.tsx index 94e197abd4557..b1654161f60b1 100644 --- a/test/production/typescript-basic/app/pages/index.tsx +++ b/test/production/typescript-basic/app/pages/index.tsx @@ -12,7 +12,23 @@ export default function Page() { return ( <>

hello world

- to /another + { + console.log(e.currentTarget) + }} + > + to /another + + {/** @ts-expect-error - foo does not exist on React.MouseEvent */} + { + console.log(e.foo) + }} + > + to /another + ) }