diff options
author | 2023-12-28 22:49:04 +0100 | |
---|---|---|
committer | 2023-12-28 22:49:04 +0100 | |
commit | a2977cbc5af31f4e46a75070adc501abea34da3d (patch) | |
tree | be04f3b47504b514da35579733712f4350f660c6 /examples/with-nanostores/src | |
parent | 9021c18a00a2f8ea92fdaf2324b9e6d93e2e4058 (diff) | |
download | astro-a2977cbc5af31f4e46a75070adc501abea34da3d.tar.gz astro-a2977cbc5af31f4e46a75070adc501abea34da3d.tar.zst astro-a2977cbc5af31f4e46a75070adc501abea34da3d.zip |
fix(examples): make astro check pass (#9542)
Diffstat (limited to 'examples/with-nanostores/src')
-rw-r--r-- | examples/with-nanostores/src/cartStore.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<CartItem, 'id' | 'name' | 'imageSrc'>; export const cartItems = map<Record<string, CartItem>>({}); -export function addCartItem({ id, name, imageSrc }) { +export function addCartItem({ id, name, imageSrc }: CartItem) { const existingEntry = cartItems.get()[id]; if (existingEntry) { cartItems.setKey(id, { |