Skip to content

Instantly share code, notes, and snippets.

@hallettj
Created September 25, 2017 18:32
Show Gist options
  • Save hallettj/5968e19fc11ddce445df03febd9593af to your computer and use it in GitHub Desktop.
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
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