Skip to content

Commit 110e542

Browse files
committed
docs(schema): add missing jsdoc to DocumentArrayElement.prototype.clone re: #13190
1 parent 378f1e0 commit 110e542

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/schema/DocumentArrayElement.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ DocumentArrayElement.prototype.doValidate = function(value, fn, scope, options)
7575
return SubdocumentPath.prototype.doValidate.call(this, value, fn, scope, options);
7676
};
7777

78+
/**
79+
* Clone the current SchemaType
80+
*
81+
* @return {DocumentArrayElement} The cloned instance
82+
* @api private
83+
*/
84+
7885
DocumentArrayElement.prototype.clone = function() {
7986
this.options.$parentSchemaType = this.$parentSchemaType;
8087
const ret = SchemaType.prototype.clone.apply(this, arguments);

0 commit comments

Comments
 (0)