Skip to content

Commit 1e3bc99

Browse files
vkarpov15Copilot
andauthored
Update lib/options/schemaUnionOptions.js
Co-authored-by: Copilot <[email protected]>
1 parent 6f2ac19 commit 1e3bc99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/options/schemaUnionOptions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ class SchemaUnionOptions extends SchemaTypeOptions {}
1515
const opts = require('./propertyOptions');
1616

1717
/**
18-
* If set, specifies the type of this map's values. Mongoose will cast
19-
* this map's values to the given type.
18+
* If set, specifies the types that this union can take. Mongoose will cast
19+
* the value to one of the given types.
2020
*
21-
* If not set, Mongoose will not cast the map's values.
21+
* If not set, Mongoose will not cast the value to any specific type.
2222
*
2323
* @api public
2424
* @property of
2525
* @memberOf SchemaUnionOptions
26-
* @type {Function|string}
26+
* @type {Function|Function[]|string|string[]}
2727
* @instance
2828
*/
2929

0 commit comments

Comments
 (0)