Skip to content

Commit aef5be6

Browse files
committed
Merge branch 'vkarpov15/gh-10894' of github.com:Automattic/mongoose into vkarpov15/gh-10894
2 parents ec77420 + 1e3bc99 commit aef5be6

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)