Cleanup
This commit is contained in:
20
node_modules/mongoose/lib/options/SchemaArrayOptions.js
generated
vendored
20
node_modules/mongoose/lib/options/SchemaArrayOptions.js
generated
vendored
@@ -32,6 +32,26 @@ const opts = require('./propertyOptions');
|
||||
|
||||
Object.defineProperty(SchemaArrayOptions.prototype, 'enum', opts);
|
||||
|
||||
/**
|
||||
* If set, specifies the type of this array's values. Equivalent to setting
|
||||
* `type` to an array whose first element is `of`.
|
||||
*
|
||||
* ####Example:
|
||||
*
|
||||
* // `arr` is an array of numbers.
|
||||
* new Schema({ arr: [Number] });
|
||||
* // Equivalent way to define `arr` as an array of numbers
|
||||
* new Schema({ arr: { type: Array, of: Number } });
|
||||
*
|
||||
* @api public
|
||||
* @property of
|
||||
* @memberOf SchemaArrayOptions
|
||||
* @type Function|String
|
||||
* @instance
|
||||
*/
|
||||
|
||||
Object.defineProperty(SchemaArrayOptions.prototype, 'of', opts);
|
||||
|
||||
/*!
|
||||
* ignore
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user