Procházet zdrojové kódy

docs(core): Correctly tag PriceCalculationStrategy for docs

Michael Bromley před 5 roky
rodič
revize
eeb471f363

+ 2 - 0
packages/core/src/config/order/default-price-calculation-strategy.ts

@@ -6,6 +6,8 @@ import { CalculatedPrice, PriceCalculationStrategy } from './price-calculation-s
  * @description
  * The default {@link PriceCalculationStrategy}, which simply passes through the price of
  * the ProductVariant without performing any calculations
+ *
+ * @docsCategory orders
  */
 export class DefaultPriceCalculationStrategy implements PriceCalculationStrategy {
     calculateUnitPrice(productVariant: ProductVariant): CalculatedPrice | Promise<CalculatedPrice> {

+ 2 - 2
packages/core/src/config/order/price-calculation-strategy.ts

@@ -5,7 +5,7 @@ import { ProductVariant } from '../../entity/product-variant/product-variant.ent
  * @description
  * The result of the price calculation from the {@link PriceCalculationStrategy}.
  *
- * @docsCateogory Orders
+ * @docsCategory Orders
  */
 export type CalculatedPrice = {
     price: number;
@@ -45,7 +45,7 @@ export type CalculatedPrice = {
  * * A product-configurator where e.g. various finishes, colors, and materials can be selected and stored
  *   as OrderLine custom fields.
  *
- * @docsCateogory Orders
+ * @docsCategory Orders
  */
 export interface PriceCalculationStrategy extends InjectableStrategy {
     /**