(version: unknown)
| 21 | export type EncryptionVersion = 1 | 2 | 3 | 4 | 5; |
| 22 | |
| 23 | export const isEncryptionVersion = (version: unknown): version is EncryptionVersion => { |
| 24 | return typeof version === "number" && version >= 1 && version <= 5; |
| 25 | }; |
| 26 | |
| 27 | /** |
| 28 | * Valid encryption revisions (R entry). |