Skip to content

Commit de16d17

Browse files
authored
docs(dotnet): move options arguments last (#5856)
1 parent 2367039 commit de16d17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/doclint/generateDotnetApi.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,9 @@ function renderMethod(member, parent, output, name) {
521521
pushArg(argType, argName, arg);
522522
};
523523

524-
member.args.forEach(parseArg);
524+
member.argsArray
525+
.sort((a, b) => b.alias === 'options' ? -1 : 0) //move options to the back to the arguments list
526+
.forEach(parseArg);
525527

526528
output(XmlDoc.renderXmlDoc(member.spec, maxDocumentationColumnWidth));
527529
paramDocs.forEach((val, ind) => {
@@ -720,4 +722,4 @@ function registerAdditionalType(typeName, type) {
720722
}
721723

722724
additionalTypes.set(typeName, type);
723-
}
725+
}

0 commit comments

Comments
 (0)