Last active
March 30, 2020 11:16
-
-
Save Luchanso/95647810f21bbd674d771fe37958e2c8 to your computer and use it in GitHub Desktop.
ReturnTypeMapDispatchToProps
This file contains hidden or 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 type ReturnTypeMapDispatchToProps<T> = { | |
[P in keyof T]: T[P] extends ( | |
...args: infer A | |
) => (...args: any[]) => infer R | |
? (...args: A) => R | |
: T[P]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment