@wix/headless-stores 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,7 +139,7 @@ export interface NotFoundProductServiceConfigResult {
|
|
|
139
139
|
* import { Product } from '@wix/stores/components';
|
|
140
140
|
*
|
|
141
141
|
* interface ProductPageProps {
|
|
142
|
-
* productConfig: Awaited<ReturnType<typeof loadProductServiceConfig
|
|
142
|
+
* productConfig: Extract<Awaited<ReturnType<typeof loadProductServiceConfig>>, { type: 'success' }>['config'];
|
|
143
143
|
* }
|
|
144
144
|
*
|
|
145
145
|
* export const getServerSideProps: GetServerSideProps<ProductPageProps> = async ({ params }) => {
|
|
@@ -132,7 +132,7 @@ const loadProductBySlug = async (slug) => {
|
|
|
132
132
|
* import { Product } from '@wix/stores/components';
|
|
133
133
|
*
|
|
134
134
|
* interface ProductPageProps {
|
|
135
|
-
* productConfig: Awaited<ReturnType<typeof loadProductServiceConfig
|
|
135
|
+
* productConfig: Extract<Awaited<ReturnType<typeof loadProductServiceConfig>>, { type: 'success' }>['config'];
|
|
136
136
|
* }
|
|
137
137
|
*
|
|
138
138
|
* export const getServerSideProps: GetServerSideProps<ProductPageProps> = async ({ params }) => {
|
|
@@ -139,7 +139,7 @@ export interface NotFoundProductServiceConfigResult {
|
|
|
139
139
|
* import { Product } from '@wix/stores/components';
|
|
140
140
|
*
|
|
141
141
|
* interface ProductPageProps {
|
|
142
|
-
* productConfig: Awaited<ReturnType<typeof loadProductServiceConfig
|
|
142
|
+
* productConfig: Extract<Awaited<ReturnType<typeof loadProductServiceConfig>>, { type: 'success' }>['config'];
|
|
143
143
|
* }
|
|
144
144
|
*
|
|
145
145
|
* export const getServerSideProps: GetServerSideProps<ProductPageProps> = async ({ params }) => {
|
|
@@ -132,7 +132,7 @@ const loadProductBySlug = async (slug) => {
|
|
|
132
132
|
* import { Product } from '@wix/stores/components';
|
|
133
133
|
*
|
|
134
134
|
* interface ProductPageProps {
|
|
135
|
-
* productConfig: Awaited<ReturnType<typeof loadProductServiceConfig
|
|
135
|
+
* productConfig: Extract<Awaited<ReturnType<typeof loadProductServiceConfig>>, { type: 'success' }>['config'];
|
|
136
136
|
* }
|
|
137
137
|
*
|
|
138
138
|
* export const getServerSideProps: GetServerSideProps<ProductPageProps> = async ({ params }) => {
|