Created
June 25, 2024 15:34
-
-
Save fostyfost/5b31c4d3f1387ddcac4c70705bf48e16 to your computer and use it in GitHub Desktop.
Distributive Pick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DistributivePick<T, K extends keyof T> = T extends any ? Pick<T, K> : never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment