From 353df5a534d839375735424435d2374b2411e685 Mon Sep 17 00:00:00 2001 From: FAKER-A <1037881273@qq.com> Date: Thu, 28 Jan 2021 18:20:10 +0800 Subject: [PATCH] fix: oneof warning message --- src/validators/oneof.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validators/oneof.ts b/src/validators/oneof.ts index 438a09ed..0c1634c6 100644 --- a/src/validators/oneof.ts +++ b/src/validators/oneof.ts @@ -7,7 +7,7 @@ export default function oneOf(arr: T) { '[VueTypes error]: You must provide an array as argument.', ) } - const msg = `oneOf - value should be one of "${arr.join('", "')}."` + const msg = `oneOf - value should be one of "${arr.join('", "')}".` const allowedTypes = arr.reduce((ret, v) => { if (v !== null && v !== undefined) { const constr = (v as any).constructor