TypeScript: Emulate Parameters built-in
13 August 2023 (Updated 14 August 2023)
On this page
Solution
How it works
We use the infer
keyword to capture the argument types and then return them.
TypeScript playground
Tagged:
TypeScript
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment