You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(types): resolve four pre-existing svelte-check errors (#332)
* fix(types): resolve four pre-existing svelte-check errors
- nourishRelay: re-export NourishRelayResult so nourishDiscovery can
import it from this module
- kitchens: add ValidSellerTier for the membership filter list; the
getMembership return tier ('member') is not in membershipStore's
MembershipTier union
- FoodstrFeedOptimized: annotate primalEvents.filter callback as
NDKEvent (primalPrefetch is Promise<any>, which widened the array
element to any)
- FoodstrFeedOptimized: widen kinds array at the single flagged
subscribe site, matching the existing [1, 1068 as number] as number[]
pattern used elsewhere in the file
svelte-check: 4 errors → 0 errors (127 warnings unchanged)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(kitchens): make KitchenDisplay.memberTier type match stored values
Copilot review on PR #332 flagged that the previous fix let 'member'
pass the validTiers filter and then be cast to membershipStore's
MembershipTier on assignment, leaving KitchenDisplay.memberTier holding
a value outside its declared union at runtime.
Introduce a shared KitchenMemberTier type ('member' | 'cook_plus' |
'pro_kitchen' | 'founders') on the marketplace types module, use it for
both KitchenDisplay.memberTier and ImplicitKitchen.memberTier, and drop
the now-misleading cast chain in kitchens.ts. MembershipBadge already
handles 'member' at runtime (its tierConfig has an entry for it) — its
tier prop is widened to admit it so KitchenCard passes cleanly without
a cast.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: spe1020 <sethsager@Seths-MacBook-Air.local>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments