Created
August 25, 2017 22:37
-
-
Save geowarin/74b01fc5ab140d679326ea31a19203ed to your computer and use it in GitHub Desktop.
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
export declare function pluck<T, K1 extends keyof T>(p: T, property: K1): T[K1]; | |
export declare function pluck< | |
T, | |
K1 extends keyof T, | |
K2 extends keyof T[K1] | |
>(o: T, property1: K1, property2: K2): T[K1][K2]; | |
export declare function pluck< | |
T, | |
K1 extends keyof T, | |
K2 extends keyof T[K1], | |
K3 extends keyof T[K1][K2] | |
>(this: T, property1: K1, property2: K2, property3: K3): T[K1][K2][K3]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment