chore: improve JS Client TSDoc comments (#5582)

* add oas schema to tsdoc parser

* add tsdoc (part 1)

* Finished tsdoc in js client

* general fixes

* added tsdoc in core medusa package

* parse schema tags in model files

* added maxlevel option

* added more tsdoc

* added tsdoc in core

* added TSDoc in core package

* generated client types

* support featureFlag and expandable tags

* added support for resource feature flag note

* fix api ignore plugin

* added eslint plugin

* support feature flag and expandable badges

* adjusted overview page + generated reference

* revert generated files

* added changeset

* add details about new typedoc options

* fix broken link
This commit is contained in:
Shahed Nasser
2023-11-09 12:51:17 +02:00
committed by GitHub
parent c68da6d685
commit 91615f9c45
748 changed files with 12354 additions and 1684 deletions
@@ -10,6 +10,7 @@ export type DetailsSummaryProps = {
open?: boolean
className?: string
titleClassName?: string
hideExpandableIcon?: boolean
} & Omit<React.HTMLAttributes<HTMLElement>, "title">
export const DetailsSummary = ({
@@ -21,6 +22,7 @@ export const DetailsSummary = ({
open = false,
className,
titleClassName,
hideExpandableIcon = false,
...rest
}: DetailsSummaryProps) => {
return (
@@ -54,7 +56,7 @@ export const DetailsSummary = ({
{(badge || expandable) && (
<span className="flex gap-docs_0.5">
{badge}
{expandable && (
{expandable && !hideExpandableIcon && (
<PlusMini
className={clsx("transition-transform", open && "rotate-45")}
/>