@wocart/storefront / index / StorefrontApiParams
Type Alias: StorefrontApiParams<N>
StorefrontApiParams<
N> =ParamOf<typeofSTOREFRONT_API_PATHS[N]> extendsnever?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