Add any types for getContext data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user