Here is a link to the FLOW bin with a working version that still doesn't seem to work. A function is getting an undefined param that should be passed in using the spread operator. The error I am talking about is #78 when you open the link.
--> Flow Bin
I cannot seem to make the spread operator work with Flow. Am I doing something wrong here? Im using the latest version of Webstorm and "flow-bin": "^0.48.0". Any help would be very appreciated! Thanks
type Actions = {
authenticateUser: (formProps: RegisterUserProps) => Dispatch,
errorMessage: string,
handleSubmit: any,
valid: boolean
}
type Props = {
...Actions
}
This code just makes my IDE think there is nothing being passed into Props - so I get errors for each of the types in Actions.