Improve Jsdoc formatting in typedef

This commit is contained in:
Janos Lengyel 2023-07-13 14:33:31 +02:00
commit fc7d712673

View file

@ -28,15 +28,15 @@ export interface HeaderProps
href?: string; href?: string;
/** /**
* Specify the company name * Specify the company name.
* Alternatively, use the named slot "company" (e.g., <span slot="company">...</span>) * Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`)
* @default undefined * @default undefined
*/ */
company?: string; company?: string;
/** /**
* Specify the platform name * Specify the platform name.
* Alternatively, use the named slot "platform" (e.g., <span slot="platform">...</span>) * Alternatively, use the named slot "platform" (e.g., `<span slot="platform">...</span>`)
* @default "" * @default ""
*/ */
platformName?: string; platformName?: string;
@ -48,13 +48,13 @@ export interface HeaderProps
persistentHamburgerMenu?: boolean; persistentHamburgerMenu?: boolean;
/** /**
* The window width (px) at which the SideNav is expanded and the hamburger menu is hidden * The window width (px) at which the SideNav is expanded and the hamburger menu is hidden.
* 1056 represents the "large" breakpoint in pixels from the Carbon Design System: * 1056 represents the "large" breakpoint in pixels from the Carbon Design System:
* small: 320 * small: 320
* medium: 672 * medium: 672
* large: 1056 * large: 1056
* x-large: 1312 * x-large: 1312
* max: 1584 * max: 1584
* @default 1056 * @default 1056
*/ */
expansionBreakpoint?: number; expansionBreakpoint?: number;
@ -66,15 +66,15 @@ export interface HeaderProps
ref?: null | HTMLAnchorElement; ref?: null | HTMLAnchorElement;
/** /**
* Specify the icon to render for the closed state. * Specify the icon to render for the closed state.
* Defaults to `<Menu size={20} />` * Defaults to `<Menu size={20} />`
* @default undefined * @default undefined
*/ */
iconMenu?: typeof import("svelte").SvelteComponent; iconMenu?: typeof import("svelte").SvelteComponent;
/** /**
* Specify the icon to render for the opened state. * Specify the icon to render for the opened state.
* Defaults to `<Close size={20} />` * Defaults to `<Close size={20} />`
* @default undefined * @default undefined
*/ */
iconClose?: typeof import("svelte").SvelteComponent; iconClose?: typeof import("svelte").SvelteComponent;