TypeScript Coach

TypeScript Coach

  • Learn
  • Node.js
  • About
  • API
  • Learn TypeScript

    • Basics
    • Branching
    • Functions
    • Arrays
    • Strings
    • Types
    • Objects
    • Maps and Sets
    • Promises
    • Generic Types
    • Advanced Types
    • Utility Types
    • Classes
    • Modules
    • Namespaces
    • Decorators
  • Node.js

    • fsFile System
    • pathFile Paths
    • osOperating System
    • urlURL parsing
    • requireLoading modules
  • Sign in

Pick<Type, Keys>

Creates a new type by selecting one or more properties from an object type.

It is useful when you only need a subset of fields from a larger type.

You can implement your own Pick with an index signature type.

The MyPick type is an improved utility type from the TypeScript FAQs.

Was this page helpful?

Built with ❤️ by keshav  |  open source |  terms of service |  privacy policy

GitHub repository