(status: string | null | undefined)
| 33 | * Returns true when a subscription status is usable for product access. |
| 34 | */ |
| 35 | export function hasUsableSubscriptionStatus(status: string | null | undefined): boolean { |
| 36 | return USABLE_SUBSCRIPTION_STATUSES.includes( |
| 37 | status as (typeof USABLE_SUBSCRIPTION_STATUSES)[number] |
| 38 | ) |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Returns true when a subscription is usable for product access. |
no outgoing calls
no test coverage detected