We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61080a5 + 353df5a commit 8ee3359Copy full SHA for 8ee3359
src/validators/oneof.ts
@@ -7,7 +7,7 @@ export default function oneOf<T extends readonly any[]>(arr: T) {
7
'[VueTypes error]: You must provide an array as argument.',
8
)
9
}
10
- const msg = `oneOf - value should be one of "${arr.join('", "')}."`
+ const msg = `oneOf - value should be one of "${arr.join('", "')}".`
11
const allowedTypes = arr.reduce((ret, v) => {
12
if (v !== null && v !== undefined) {
13
const constr = (v as any).constructor
0 commit comments