(opt, createDiagnostic)
| 40490 | } |
| 40491 | ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType; |
| 40492 | function createDiagnosticForInvalidCustomType(opt, createDiagnostic) { |
| 40493 | var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return "'".concat(key, "'"); }).join(", "); |
| 40494 | return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, "--".concat(opt.name), namesOfType); |
| 40495 | } |
| 40496 | /* @internal */ |
| 40497 | function parseCustomTypeOption(opt, value, errors) { |
| 40498 | return convertJsonOptionOfCustomType(opt, ts.trimString(value || ""), errors); |
no test coverage detected