Skip to content

Commit 007d137

Browse files
waleedlatif1claude
andcommitted
improvement(processing): use exported HighestPrioritySubscription type in usage.ts
Replace inline `Awaited<ReturnType<typeof getHighestPrioritySubscription>>` with the already-exported `HighestPrioritySubscription` type alias. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ffd5385 commit 007d137

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/sim/lib/billing/core/usage.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import {
77
renderFreeTierUpgradeEmail,
88
renderUsageThresholdEmail,
99
} from '@/components/emails'
10-
import { getHighestPrioritySubscription } from '@/lib/billing/core/plan'
10+
import {
11+
getHighestPrioritySubscription,
12+
type HighestPrioritySubscription,
13+
} from '@/lib/billing/core/plan'
1114
import {
1215
canEditUsageLimit,
1316
getFreeTierLimit,
@@ -354,7 +357,7 @@ export async function updateUserUsageLimit(
354357
*/
355358
export async function getUserUsageLimit(
356359
userId: string,
357-
preloadedSubscription?: Awaited<ReturnType<typeof getHighestPrioritySubscription>>
360+
preloadedSubscription?: HighestPrioritySubscription
358361
): Promise<number> {
359362
const subscription =
360363
preloadedSubscription !== undefined

0 commit comments

Comments
 (0)