(rawValue: any, option: SettingsOption)
| 477 | } |
| 478 | |
| 479 | function textFieldValue(rawValue: any, option: SettingsOption) { |
| 480 | const defaultValue = option.defaultValue ?? "" |
| 481 | if (rawValue === undefined || rawValue === null) { |
| 482 | return defaultValue |
| 483 | } |
| 484 | |
| 485 | return rawValue |
| 486 | } |
| 487 | |
| 488 | function booleanValue(rawValue: any, option: SettingsOption) { |
| 489 | const defaultValue = option.defaultValue ?? false |
no outgoing calls
no test coverage detected