Created
September 25, 2017 18:32
-
-
Save hallettj/5968e19fc11ddce445df03febd9593af to your computer and use it in GitHub Desktop.
Flow type for a function that modifies an input function while preserving argument arity and types
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
function promisify<T, Args: *> ( | |
taskFn: (...args: Args) => Task<T> | |
): Task<(...args: Args) => Promise<T>> { | |
/* ... */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment