Add any types for getContext data

This commit is contained in:
2022-09-01 10:57:45 +02:00
parent 7e46350106
commit 945d7f09d7
13 changed files with 44 additions and 44 deletions

View File

@@ -11,8 +11,8 @@
export let data: PageData
const { product, shopProduct } = data
const { posters } = getContext('shop')
const { product, shopProduct }: { product: any, shopProduct: any } = data
const { posters }: any = getContext('shop')
// Update current random product slug
$shopCurrentProductSlug = product.location.slug