Skip to content

Commit 24bcd7e

Browse files
committed
Document that type may be an array.
1 parent b2fee81 commit 24bcd7e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ See the [system schema](https://github.com/freeformsystems/async-validate/blob/m
339339

340340
##### Type Identifier
341341

342-
* `type <string|function>`: Type identifier or constructor function.
342+
* `type <string|function|array>`: Type identifier, constructor function or list of types.
343343

344344
The `type` property indicates the type of rule to use, a type corresponds to a plugin function and the plugin should have been loaded.
345345

doc/readme/guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ See the [system schema](/system.js).
216216

217217
##### Type Identifier
218218

219-
* `type <string|function>`: Type identifier or constructor function.
219+
* `type <string|function|array>`: Type identifier, constructor function or list of types.
220220

221221
The `type` property indicates the type of rule to use, a type corresponds to a plugin function and the plugin should have been loaded.
222222

system.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var schema = {
1616
required: {type: 'boolean'},
1717
test: {type: 'function'},
1818
type: {
19-
type: ['string', 'function'],
19+
type: ['string', 'function', 'array'],
2020
required: true
2121
},
2222
values: {type: ['object', 'array']},

0 commit comments

Comments
 (0)