(optionValue: any)
| 267 | } |
| 268 | |
| 269 | static convertBooleanOption(optionValue: any): boolean { |
| 270 | if (typeof optionValue === "boolean") { |
| 271 | return optionValue; |
| 272 | } |
| 273 | if (typeof optionValue === "string") { |
| 274 | return optionValue === "" || optionValue.toLowerCase() === "true"; |
| 275 | } |
| 276 | return false; |
| 277 | } |
| 278 | |
| 279 | static convertNumberOption(optionValue: any, defaultValue: number) { |
| 280 | try { |
no outgoing calls
no test coverage detected