(
session: { status: string } | null | undefined,
)
| 40 | * client-only `takeover_prompt` variant) without a discriminated-union |
| 41 | * ceremony at every call site. */ |
| 42 | export const getRateLimitsByModel = ( |
| 43 | session: { status: string } | null | undefined, |
| 44 | ): FreebuffSessionRateLimitByModel | undefined => |
| 45 | session && 'rateLimitsByModel' in session |
| 46 | ? (session as { rateLimitsByModel?: FreebuffSessionRateLimitByModel }) |
| 47 | .rateLimitsByModel |
| 48 | : undefined |
| 49 | |
| 50 | export type FreebuffCountryBlockReason = |
| 51 | | 'country_not_allowed' |
no outgoing calls
no test coverage detected