Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / StorefrontApiParams

Type Alias: StorefrontApiParams<N>

StorefrontApiParams<N> = ParamOf<typeof STOREFRONT_API_PATHS[N]> extends never ? Record<string, never> : { [K in ParamOf<typeof STOREFRONT_API_PATHS[N]>]: string | number }

The parameter a route's path needs: { wilayaId } for the communes, { productId } for a product's reviews, nothing otherwise.

Type Parameters

N

N extends StorefrontApiName