TypeScript - Usage Of Pick And Tuple Keywords

Pick is a utility type that helps you create new types based on existing types by picking just the properties you are interested in. 

Instead of redefining a whole new type, you can easily derive it from another one. 

Just "pick" the props. See below for example ??

Tuples are arrays with a fixed length.

Sometimes it can be more convenient to work with tuples instead of objects.

You get the type-safety when using the index also.

Here's a return type that gives us the weekday and its number. See below for example ??

Typescript - Usage of Pick and tuple Keywords