(key: string)
| 47 | |
| 48 | /** Returns true iff key would pass validateKey (no throw). Useful for guards. */ |
| 49 | export function isValidKey(key: string): boolean { |
| 50 | try { |
| 51 | validateKey(key) |
| 52 | return true |
| 53 | } catch { |
| 54 | return false |
| 55 | } |
| 56 | } |
no test coverage detected