(value: unknown, what: string, key?: string)
| 136 | } |
| 137 | |
| 138 | function validateStringValue(value: unknown, what: string, key?: string): string { |
| 139 | if (typeof value !== 'string') { |
| 140 | throw new Error(`Expected value for ${what}${key !== void 0 ? ' ' + quote(key) : ''} to be a string, got ${typeof value} instead`) |
| 141 | } |
| 142 | return value |
| 143 | } |
| 144 | |
| 145 | function pushCommonFlags(flags: string[], options: CommonOptions, keys: OptionKeys): void { |
| 146 | let legalComments = getFlag(options, keys, 'legalComments', mustBeString) |
no test coverage detected
searching dependent graphs…