Skip to content

Commit 5d80579

Browse files
committed
style: properly escape "@type" type parameters
1 parent ec947f6 commit 5d80579

12 files changed

+51
-51
lines changed

lib/options/SchemaArrayOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const opts = require('./propertyOptions');
2626
* @api public
2727
* @property enum
2828
* @memberOf SchemaArrayOptions
29-
* @type Array
29+
* @type {Array}
3030
* @instance
3131
*/
3232

@@ -46,7 +46,7 @@ Object.defineProperty(SchemaArrayOptions.prototype, 'enum', opts);
4646
* @api public
4747
* @property of
4848
* @memberOf SchemaArrayOptions
49-
* @type Function|String
49+
* @type {Function|String}
5050
* @instance
5151
*/
5252

lib/options/SchemaBufferOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
2525
* @api public
2626
* @property subtype
2727
* @memberOf SchemaBufferOptions
28-
* @type Number
28+
* @type {Number}
2929
* @instance
3030
*/
3131

lib/options/SchemaDateOptions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const opts = require('./propertyOptions');
2626
* @api public
2727
* @property min
2828
* @memberOf SchemaDateOptions
29-
* @type Date
29+
* @type {Date}
3030
* @instance
3131
*/
3232

@@ -39,7 +39,7 @@ Object.defineProperty(SchemaDateOptions.prototype, 'min', opts);
3939
* @api public
4040
* @property max
4141
* @memberOf SchemaDateOptions
42-
* @type Date
42+
* @type {Date}
4343
* @instance
4444
*/
4545

@@ -58,7 +58,7 @@ Object.defineProperty(SchemaDateOptions.prototype, 'max', opts);
5858
* @api public
5959
* @property expires
6060
* @memberOf SchemaDateOptions
61-
* @type Date
61+
* @type {Date}
6262
* @instance
6363
*/
6464

lib/options/SchemaDocumentArrayOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const opts = require('./propertyOptions');
3535
* @api public
3636
* @property excludeIndexes
3737
* @memberOf SchemaDocumentArrayOptions
38-
* @type Array
38+
* @type {Array}
3939
* @instance
4040
*/
4141

@@ -55,7 +55,7 @@ Object.defineProperty(SchemaDocumentArrayOptions.prototype, 'excludeIndexes', op
5555
* @api public
5656
* @property _id
5757
* @memberOf SchemaDocumentArrayOptions
58-
* @type Array
58+
* @type {Array}
5959
* @instance
6060
*/
6161

lib/options/SchemaMapOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const opts = require('./propertyOptions');
3434
* @api public
3535
* @property of
3636
* @memberOf SchemaMapOptions
37-
* @type Function|string
37+
* @type {Function|string}
3838
* @instance
3939
*/
4040

lib/options/SchemaNumberOptions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const opts = require('./propertyOptions');
2626
* @api public
2727
* @property min
2828
* @memberOf SchemaNumberOptions
29-
* @type Number
29+
* @type {Number}
3030
* @instance
3131
*/
3232

@@ -39,7 +39,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'min', opts);
3939
* @api public
4040
* @property max
4141
* @memberOf SchemaNumberOptions
42-
* @type Number
42+
* @type {Number}
4343
* @instance
4444
*/
4545

@@ -61,7 +61,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'max', opts);
6161
* @api public
6262
* @property enum
6363
* @memberOf SchemaNumberOptions
64-
* @type Array
64+
* @type {Array}
6565
* @instance
6666
*/
6767

@@ -86,7 +86,7 @@ Object.defineProperty(SchemaNumberOptions.prototype, 'enum', opts);
8686
* @api public
8787
* @property populate
8888
* @memberOf SchemaNumberOptions
89-
* @type Object
89+
* @type {Object}
9090
* @instance
9191
*/
9292

lib/options/SchemaObjectIdOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
2525
* @api public
2626
* @property auto
2727
* @memberOf SchemaObjectIdOptions
28-
* @type Boolean
28+
* @type {Boolean}
2929
* @instance
3030
*/
3131

@@ -50,7 +50,7 @@ Object.defineProperty(SchemaObjectIdOptions.prototype, 'auto', opts);
5050
* @api public
5151
* @property populate
5252
* @memberOf SchemaObjectIdOptions
53-
* @type Object
53+
* @type {Object}
5454
* @instance
5555
*/
5656

lib/options/SchemaStringOptions.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const opts = require('./propertyOptions');
2525
* @api public
2626
* @property enum
2727
* @memberOf SchemaStringOptions
28-
* @type Array
28+
* @type {Array}
2929
* @instance
3030
*/
3131

@@ -38,7 +38,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'enum', opts);
3838
* @api public
3939
* @property match
4040
* @memberOf SchemaStringOptions
41-
* @type RegExp
41+
* @type {RegExp}
4242
* @instance
4343
*/
4444

@@ -51,7 +51,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'match', opts);
5151
* @api public
5252
* @property lowercase
5353
* @memberOf SchemaStringOptions
54-
* @type Boolean
54+
* @type {Boolean}
5555
* @instance
5656
*/
5757

@@ -64,7 +64,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'lowercase', opts);
6464
* @api public
6565
* @property trim
6666
* @memberOf SchemaStringOptions
67-
* @type Boolean
67+
* @type {Boolean}
6868
* @instance
6969
*/
7070

@@ -77,7 +77,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'trim', opts);
7777
* @api public
7878
* @property uppercase
7979
* @memberOf SchemaStringOptions
80-
* @type Boolean
80+
* @type {Boolean}
8181
* @instance
8282
*/
8383

@@ -94,7 +94,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'uppercase', opts);
9494
* @api public
9595
* @property minLength
9696
* @memberOf SchemaStringOptions
97-
* @type Number
97+
* @type {Number}
9898
* @instance
9999
*/
100100

@@ -112,7 +112,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'minlength', opts);
112112
* @api public
113113
* @property maxLength
114114
* @memberOf SchemaStringOptions
115-
* @type Number
115+
* @type {Number}
116116
* @instance
117117
*/
118118

@@ -125,7 +125,7 @@ Object.defineProperty(SchemaStringOptions.prototype, 'maxlength', opts);
125125
* @api public
126126
* @property populate
127127
* @memberOf SchemaStringOptions
128-
* @type Object
128+
* @type {Object}
129129
* @instance
130130
*/
131131

lib/options/SchemaSubdocumentOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const opts = require('./propertyOptions');
3333
* @api public
3434
* @property of
3535
* @memberOf SchemaSubdocumentOptions
36-
* @type Function|string
36+
* @type {Function|string}
3737
* @instance
3838
*/
3939

lib/options/SchemaTypeOptions.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const opts = require('./propertyOptions');
3131
* @api public
3232
* @property type
3333
* @memberOf SchemaTypeOptions
34-
* @type Function|String|Object
34+
* @type {Function|String|Object}
3535
* @instance
3636
*/
3737

@@ -43,7 +43,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'type', opts);
4343
* @api public
4444
* @property validate
4545
* @memberOf SchemaTypeOptions
46-
* @type Function|Object
46+
* @type {Function|Object}
4747
* @instance
4848
*/
4949

@@ -74,7 +74,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'validate', opts);
7474
* @api public
7575
* @property cast
7676
* @memberOf SchemaTypeOptions
77-
* @type String
77+
* @type {String}
7878
* @instance
7979
*/
8080

@@ -88,7 +88,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'cast', opts);
8888
* @api public
8989
* @property required
9090
* @memberOf SchemaTypeOptions
91-
* @type Function|Boolean
91+
* @type {Function|Boolean}
9292
* @instance
9393
*/
9494

@@ -101,7 +101,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'required', opts);
101101
* @api public
102102
* @property default
103103
* @memberOf SchemaTypeOptions
104-
* @type Function|Any
104+
* @type {Function|Any}
105105
* @instance
106106
*/
107107

@@ -113,7 +113,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'default', opts);
113113
* @api public
114114
* @property ref
115115
* @memberOf SchemaTypeOptions
116-
* @type Function|String
116+
* @type {Function|String}
117117
* @instance
118118
*/
119119

@@ -126,7 +126,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'ref', opts);
126126
* @api public
127127
* @property ref
128128
* @memberOf SchemaTypeOptions
129-
* @type Function|String
129+
* @type {Function|String}
130130
* @instance
131131
*/
132132

@@ -139,7 +139,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'refPath', opts);
139139
* @api public
140140
* @property select
141141
* @memberOf SchemaTypeOptions
142-
* @type Boolean|Number
142+
* @type {Boolean|Number}
143143
* @instance
144144
*/
145145

@@ -152,7 +152,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'select', opts);
152152
* @api public
153153
* @property index
154154
* @memberOf SchemaTypeOptions
155-
* @type Boolean|Number|Object
155+
* @type {Boolean|Number|Object}
156156
* @instance
157157
*/
158158

@@ -166,7 +166,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'index', opts);
166166
* @api public
167167
* @property unique
168168
* @memberOf SchemaTypeOptions
169-
* @type Boolean|Number
169+
* @type {Boolean|Number}
170170
* @instance
171171
*/
172172

@@ -180,7 +180,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'unique', opts);
180180
* @api public
181181
* @property immutable
182182
* @memberOf SchemaTypeOptions
183-
* @type Function|Boolean
183+
* @type {Function|Boolean}
184184
* @instance
185185
*/
186186

@@ -193,7 +193,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'immutable', opts);
193193
* @api public
194194
* @property sparse
195195
* @memberOf SchemaTypeOptions
196-
* @type Boolean|Number
196+
* @type {Boolean|Number}
197197
* @instance
198198
*/
199199

@@ -206,7 +206,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'sparse', opts);
206206
* @api public
207207
* @property text
208208
* @memberOf SchemaTypeOptions
209-
* @type Boolean|Number|Object
209+
* @type {Boolean|Number|Object}
210210
* @instance
211211
*/
212212

@@ -235,7 +235,7 @@ Object.defineProperty(SchemaTypeOptions.prototype, 'text', opts);
235235
* @api public
236236
* @property transform
237237
* @memberOf SchemaTypeOptions
238-
* @type Function
238+
* @type {Function}
239239
* @instance
240240
*/
241241

0 commit comments

Comments
 (0)