typescript pick keys from object with string values code example Example: typescript pick type TodoPreview = Pick<Todo, "title" | "completed">;