From a2977cbc5af31f4e46a75070adc501abea34da3d Mon Sep 17 00:00:00 2001 From: Florian Lefebvre Date: Thu, 28 Dec 2023 22:49:04 +0100 Subject: fix(examples): make astro check pass (#9542) --- examples/with-nanostores/src/cartStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/with-nanostores/src') diff --git a/examples/with-nanostores/src/cartStore.ts b/examples/with-nanostores/src/cartStore.ts index f490a2447..00270180a 100644 --- a/examples/with-nanostores/src/cartStore.ts +++ b/examples/with-nanostores/src/cartStore.ts @@ -13,7 +13,7 @@ export type CartItemDisplayInfo = Pick; export const cartItems = map>({}); -export function addCartItem({ id, name, imageSrc }) { +export function addCartItem({ id, name, imageSrc }: CartItem) { const existingEntry = cartItems.get()[id]; if (existingEntry) { cartItems.setKey(id, { -- cgit v1.2.3