Hacker News new | ask | show | jobs
by patwoz 1907 days ago
You can do that, but you don't have to.

See my example here at line 26: https://codesandbox.io/s/clever-neumann-89tnx?file=/src/App....

Typescript will inherit the type automatically.

1 comments

That's amazing, thanks for the tip