mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
HeaderGlobalAction ref type specified explicitly in JSDoc, docs rebuilt
This commit is contained in:
parent
e75c730cad
commit
f27c533516
4 changed files with 8 additions and 7 deletions
8
types/UIShell/HeaderGlobalAction.svelte.d.ts
vendored
8
types/UIShell/HeaderGlobalAction.svelte.d.ts
vendored
|
@ -1,9 +1,7 @@
|
|||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
import type { ButtonProps } from "../Button/Button.svelte";
|
||||
|
||||
type RestProps = SvelteHTMLElements["button"];
|
||||
|
||||
export interface HeaderGlobalActionProps extends RestProps {
|
||||
export interface HeaderGlobalActionProps extends ButtonProps {
|
||||
/**
|
||||
* Set to `true` to use the active variant
|
||||
* @default false
|
||||
|
@ -20,7 +18,7 @@ export interface HeaderGlobalActionProps extends RestProps {
|
|||
* Obtain a reference to the HTML button element
|
||||
* @default null
|
||||
*/
|
||||
ref?: undefined;
|
||||
ref?: HTMLButtonElement;
|
||||
}
|
||||
|
||||
export default class HeaderGlobalAction extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue