chore: OAS and TSDoc fixes (#7864)

This commit is contained in:
Shahed Nasser
2024-07-01 10:21:34 +03:00
committed by GitHub
parent 1842cd33cf
commit 9ded63cc62
4 changed files with 9 additions and 4 deletions

View File

@@ -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`

View File

@@ -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.
*/

View File

@@ -82,7 +82,7 @@ export interface FilterableReservationItemProps {
/**
* @ignore
*
* @privateRemark
* @privateRemarks
* This property is not used.
*/
type?: string | string[]

View File

@@ -359,7 +359,7 @@ const SingleDatePicker = React.forwardRef<HTMLButtonElement, SingleProps>(({
placeholder,
translations,
...props
}, ref) => {
}: SingleProps, ref) => {
const [open, setOpen] = React.useState(false)
const [date, setDate] = React.useState<Date | undefined>(
value ?? defaultValue ?? undefined
@@ -592,7 +592,7 @@ const RangeDatePicker = React.forwardRef<HTMLButtonElement, RangeProps>(({
placeholder,
translations,
...props
}, ref) => {
}: RangeProps, ref) => {
const [open, setOpen] = React.useState(false)
const [range, setRange] = React.useState<DateRange | undefined>(
value ?? defaultValue ?? undefined