(value: string | null | undefined)
| 75 | |
| 76 | /** Type guard for a raw query value against the known reasons. */ |
| 77 | export function isUpgradeReason(value: string | null | undefined): value is UpgradeReason { |
| 78 | return value != null && (UPGRADE_REASONS as readonly string[]).includes(value) |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Build a link to the workspace upgrade page, optionally tagged with the reason |
no outgoing calls
no test coverage detected