@wocart/storefront / index / StorefrontPathParams
Type Alias: StorefrontPathParams<T>
StorefrontPathParams<
T> =ParamOf<typeofSTOREFRONT_PAGE_PATHS[T]> extendsnever?Record<string,never> :{ [K in ParamOf<typeof STOREFRONT_PAGE_PATHS[T]>]: string }
The parameter a page type's path needs: { handle } for a product, { slug } for a category, page or landing page, nothing otherwise.
Type Parameters
T
T extends StorefrontPageType