(option: unknown)
| 494 | } |
| 495 | |
| 496 | export function isSecretUserScriptOption(option: unknown): boolean { |
| 497 | if (!isRecord(option)) return false; |
| 498 | |
| 499 | if (option.type === "secret") return true; |
| 500 | if ( |
| 501 | (option.type === "text" || option.type === "input") && |
| 502 | option.secret === true |
| 503 | ) { |
| 504 | return true; |
| 505 | } |
| 506 | |
| 507 | return false; |
| 508 | } |
| 509 | |
| 510 | export function isUserScriptSecretRef( |
| 511 | value: unknown, |
no test coverage detected