Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
leshakoss authored and kossnocorp committed Sep 14, 2017
1 parent 9122acf commit fd9ec82
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/build/typings.js
Expand Up @@ -425,11 +425,9 @@ function generateFlowFPFnTyping (fn, aliasDeclarations) {
function generateFlowFPFnIndexTyping (fns, aliasDeclarations) {
const filename = `./src/fp/index.js.flow`

const fnsDeclarations = fns.map(({title, args, content}) => {
const params = getParams(args, {indent: 1, leftBorder: '(', rightBorder: ')'})
const returns = getType(content.returns[0].type.names)
return ` ${title}: ${getFPFnType(args, content.returns[0].type.names)}`
})
const fnsDeclarations = fns.map(({title, args, content}) =>
` ${title}: ${getFPFnType(args, content.returns[0].type.names)}`
)

const typingString = ['// @flow']
.concat(generatedAutomaticallyMessage)
Expand Down

0 comments on commit fd9ec82

Please sign in to comment.