Align const method names (#1234)

This commit is contained in:
Jaco Greeff
2019-07-30 13:17:00 +02:00
committed by GitHub
parent 03581355be
commit e70f26d957
+1 -1
View File
@@ -87,7 +87,7 @@ function addConstants (metadata: MetadataV7): string {
const orderedConstants = moduleMetadata.constants.sort(sortByName);
return orderedConstants.reduce((md, func): string => {
const methodName = stringLowerFirst(func.name.toString());
const methodName = stringCamelCase(func.name.toString());
const doc = func.documentation.reduce((md, doc): string => `${md} ${doc}`, '');
const type = func.type;
const renderSignature = `${md}\n▸ **${methodName}**: ` + '`' + type + '`';