mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 06:47:33 +00:00
## Summary Removes unsafe `as any` type assertions from subscription credits composable now that the OpenAPI spec has been updated with the missing balance breakdown fields. The `GetCustomerBalance` API response now includes: - `cloud_credit_balance_micros` - Monthly subscription credits - `prepaid_balance_micros` - Pre-paid top-up credits These fields were previously accessed with `as any` because they weren't in the TypeScript type definitions. With the OpenAPI spec update (PR #6531), these fields are now properly typed. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6536-fix-remove-unsafe-type-assertions-in-subscription-credits-29f6d73d365081ffae52cc85c01c139b) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne <c.byrne@comfy.org>