(opt, value, errors)
| 41938 | return undefined; |
| 41939 | } |
| 41940 | function convertJsonOptionOfCustomType(opt, value, errors) { |
| 41941 | if (isNullOrUndefined(value)) |
| 41942 | return undefined; |
| 41943 | var key = value.toLowerCase(); |
| 41944 | var val = opt.type.get(key); |
| 41945 | if (val !== undefined) { |
| 41946 | return validateJsonOptionValue(opt, val, errors); |
| 41947 | } |
| 41948 | else { |
| 41949 | errors.push(createCompilerDiagnosticForInvalidCustomType(opt)); |
| 41950 | } |
| 41951 | } |
| 41952 | function convertJsonOptionOfListType(option, values, basePath, errors) { |
| 41953 | return ts.filter(ts.map(values, function (v) { return convertJsonOption(option.element, v, basePath, errors); }), function (v) { return option.listPreserveFalsyValues ? true : !!v; }); |
| 41954 | } |
no test coverage detected