提交 5d8cb8a6 编写于 作者: R Rob Lourens

Fix #97192 - delete bad setting validation

上级 36b1cb21
......@@ -69,7 +69,6 @@ export function getInvalidTypeError(value: any, type: undefined | string | strin
(valueType === 'boolean' && !canBeType(typeArr, 'boolean')) ||
(valueType === 'object' && !canBeType(typeArr, 'object', 'null', 'array')) ||
(valueType === 'string' && !canBeType(typeArr, 'string', 'number', 'integer')) ||
(typeof parseFloat(value) === 'number' && !isNaN(parseFloat(value)) && !canBeType(typeArr, 'number', 'integer')) ||
(Array.isArray(value) && !canBeType(typeArr, 'array'))
) {
if (typeof type !== 'undefined') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册