Skip to content

Commit

Permalink
test(vercel#42003): add a test case for new typing
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 2, 2022
1 parent 7d45806 commit b1dd383
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion test/production/typescript-basic/app/pages/index.tsx
Expand Up @@ -12,7 +12,23 @@ export default function Page() {
return (
<>
<p>hello world</p>
<Link href="/another">to /another</Link>
<Link
href="/another"
onClick={(e) => {
console.log(e.currentTarget)
}}
>
to /another
</Link>
{/** @ts-expect-error - foo does not exist on React.MouseEvent */}
<Link
href="/another"
onClick={(e) => {
console.log(e.foo)
}}
>
to /another
</Link>
</>
)
}

0 comments on commit b1dd383

Please sign in to comment.