Skip to content

Commit

Permalink
docs: fix checkOperator processor not to mark interfaces as operators
Browse files Browse the repository at this point in the history
Interfaces exported from the `internal/operators` module get marked as operators. Fix this issue by checking the doc type - only docs that originate as functions are operators.
  • Loading branch information
jakovljevic-mladen committed Dec 15, 2022
1 parent 5df07eb commit dfabd73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function checkOperator() {
$runBefore: ['renderDocsProcessor'],
$process(docs) {
docs.forEach((doc) => {
doc.isOperator = !!(doc.originalModule && doc.originalModule.startsWith('internal/operators'));
doc.isOperator = !!(doc.originalModule?.startsWith('internal/operators') && doc.docType === 'function');
});
},
};
Expand Down

0 comments on commit dfabd73

Please sign in to comment.