Skip to content

Commit 3cb41fb

Browse files
style: Add explicit Tier type to tiers find callback
Specifies the Tier type in the find callback for config.tiers to improve type safety and clarity.
1 parent 87fd886 commit 3cb41fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/configs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function loadConfig(inlineConfig: ContribkitConfig = {}): Promise<R
3333
merge: true,
3434
})
3535

36-
const hasNegativeTier = !!config.tiers?.find(tier => tier && tier.monthlyDollars! <= 0)
36+
const hasNegativeTier = !!config.tiers?.find((tier: Tier) => tier && tier.monthlyDollars! <= 0)
3737

3838
const resolved = {
3939
fallbackAvatar: FALLBACK_AVATAR,

0 commit comments

Comments
 (0)