Pick<Type, Keys> creates a new object type by choosing a subset of properties. It's great for lightweight summaries and list views. Keep runtime code thin: select fields and return a new object.
// Example: pick id and title from a larger shape
type Preview = Pick<
{ id: string; title: string; price: number },
"id" | "title"
>;Create a small preview object from a full product.
type Product = { id: string; title: string; price: number; tags: string[] }.type ProductPreview = Pick<Product, 'id' | 'title'>.toPreview(p: Product): ProductPreview.id and title.