Skip to content

Instantly share code, notes, and snippets.

@anztrax
Created November 29, 2025 23:56
Show Gist options
  • Select an option

  • Save anztrax/1fe560c75dc2ae31c83aa04ede41adda to your computer and use it in GitHub Desktop.

Select an option

Save anztrax/1fe560c75dc2ae31c83aa04ede41adda to your computer and use it in GitHub Desktop.
Simple Pick implementation in Typescript
type MyPick<T, K extends keyof T> = {
[key in K]: T[key]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment