From 9ded63cc624bc0bcaaad7ec420ecb0a6d0a278e7 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 1 Jul 2024 10:21:34 +0300 Subject: [PATCH] chore: OAS and TSDoc fixes (#7864) --- packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml | 5 +++++ .../cli/oas/medusa-oas-cli/src/__tests__/command-oas.test.ts | 2 +- packages/core/types/src/inventory/common/reservation-item.ts | 2 +- .../ui/src/components/date-picker/date-picker.tsx | 4 ++-- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml b/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml index cd082fccf7..65905e95ef 100644 --- a/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml +++ b/packages/cli/oas/medusa-oas-cli/redocly/redocly-config.yaml @@ -26,6 +26,11 @@ decorators: - BaseProduct StoreProduct: - StoreProductCategory + - StoreProduct + AdminCollection: + - AdminProduct + AdminProduct: + - AdminProduct # Similar config to /www/docs/docusaurus.config.js > redocusaurus # Allows to emulate rendering of API public documentation when using `yarn redocly preview-docs openapi.yaml` diff --git a/packages/cli/oas/medusa-oas-cli/src/__tests__/command-oas.test.ts b/packages/cli/oas/medusa-oas-cli/src/__tests__/command-oas.test.ts index 4d72f52408..f2d99738c4 100644 --- a/packages/cli/oas/medusa-oas-cli/src/__tests__/command-oas.test.ts +++ b/packages/cli/oas/medusa-oas-cli/src/__tests__/command-oas.test.ts @@ -11,7 +11,7 @@ import execa from "execa" /** * OAS output directory * - * @privateRemark + * @privateRemarks * This should be the only directory OAS is loaded from for Medusa V2. * For now, we only use it if the --v2 flag it passed to the CLI tool. */ diff --git a/packages/core/types/src/inventory/common/reservation-item.ts b/packages/core/types/src/inventory/common/reservation-item.ts index 1a6c8a6397..55200791e4 100644 --- a/packages/core/types/src/inventory/common/reservation-item.ts +++ b/packages/core/types/src/inventory/common/reservation-item.ts @@ -82,7 +82,7 @@ export interface FilterableReservationItemProps { /** * @ignore * - * @privateRemark + * @privateRemarks * This property is not used. */ type?: string | string[] diff --git a/packages/design-system/ui/src/components/date-picker/date-picker.tsx b/packages/design-system/ui/src/components/date-picker/date-picker.tsx index a729037695..ff4cc7224a 100644 --- a/packages/design-system/ui/src/components/date-picker/date-picker.tsx +++ b/packages/design-system/ui/src/components/date-picker/date-picker.tsx @@ -359,7 +359,7 @@ const SingleDatePicker = React.forwardRef(({ placeholder, translations, ...props -}, ref) => { +}: SingleProps, ref) => { const [open, setOpen] = React.useState(false) const [date, setDate] = React.useState( value ?? defaultValue ?? undefined @@ -592,7 +592,7 @@ const RangeDatePicker = React.forwardRef(({ placeholder, translations, ...props -}, ref) => { +}: RangeProps, ref) => { const [open, setOpen] = React.useState(false) const [range, setRange] = React.useState( value ?? defaultValue ?? undefined