Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / StorefrontPathParams

Type Alias: StorefrontPathParams<T>

StorefrontPathParams<T> = ParamOf<typeof STOREFRONT_PAGE_PATHS[T]> extends never ? 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