We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is an example code:
/* @flow */ export const inc = (a:number):number => a + 1 export default inc
gen-flow-files generates following typedefs:
gen-flow-files
// @flow declare export default function(a: number): number; declare export function inc(a: number): number;
Which it then fails to parse:
3: declare export default function(a: number): number; ^ Unexpected token ( 3: declare export default function(a: number): number; ^ Unexpected identifier 3: declare export default function(a: number): number; ^ Unexpected token :
The text was updated successfully, but these errors were encountered:
Fixed it using this in my package.json file:
package.json
"build:flow": "flow gen-flow-files src/index.js > lib/index.js.flow && npm run fix-flow-issue-2830", "fix-flow-issue-2830": "replace-in-file \"/default function(\\(.*\\)):/\" \"default \\$1 =>\" lib/index.js.flow --isRegex"
This, after generating the gen-flow-files will replace the unnamed default functions with the workaround in dogma-io/nodely#7
Sorry, something went wrong.
gen-flow-files replacement is coming soon
No branches or pull requests
Here is an example code:
gen-flow-files
generates following typedefs:Which it then fails to parse:
The text was updated successfully, but these errors were encountered: