Skip to content

Commit

Permalink
Fixed tsd transformation
Browse files Browse the repository at this point in the history
Signed-off-by: Jaid <[email protected]>
  • Loading branch information
Jaid committed Feb 9, 2019
1 parent a02a112 commit ded254d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformTsd.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default text => text.replace(moduleBlockRegex, (blockMatch, blockPrefix,
const newContent = blockContent.replace(moduleFieldRegex, (fieldMatch, fieldPrefix, fieldType, fieldName) => {
const transformedField = transformField(fieldType, fieldName)
debug(`Transformed "${fieldType} ${fieldName}" to "${transformedField}"`)
return fieldPrefix + transformField
return fieldPrefix + transformedField
})
return blockPrefix + newContent + blockSuffix
})

0 comments on commit ded254d

Please sign in to comment.