Skip to content

Commit 7c3b2e3

Browse files
fix: set correct type
1 parent be94e29 commit 7c3b2e3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5454
- Awaiting addItem action call inside mergeServerItem action (#5165)
5555
- Moved `phoneNum` to proper branch - @lukaszjedrasik ([#5730](https://github.com/vuestorefront/vue-storefront/issues/5730))
5656
- Development hot-reload speed webpack config - ([#5559](https://github.com/vuestorefront/vue-storefront/issues/5559))
57+
- Set correct type for `productPageVisited` hook - ([#5997](https://github.com/vuestorefront/vue-storefront/issues/5997))
58+
5759
## [1.12.2] - 2020.07.28
5860

5961
### Added

core/modules/catalog-next/hooks.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { createListenerHook, createMutatorHook } from '@vue-storefront/core/lib/hooks'
1+
import { createListenerHook } from '@vue-storefront/core/lib/hooks'
22
import { Category } from './types/Category';
3+
import Product from 'core/modules/catalog/types/Product';
34

45
const {
56
hook: categoryPageVisitedHook,
@@ -9,7 +10,7 @@ const {
910
const {
1011
hook: productPageVisitedHook,
1112
executor: productPageVisitedExecutor
12-
} = createListenerHook<Category>()
13+
} = createListenerHook<Product>()
1314

1415
/** Only for internal usage */
1516
const catalogHooksExecutors = {

0 commit comments

Comments
 (0)