HeaderGlobalAction ref type specified explicitly in JSDoc, docs rebuilt

This commit is contained in:
militant_gnome 2024-01-17 11:43:37 +02:00 committed by Eric Liu
commit f27c533516
4 changed files with 8 additions and 7 deletions

View file

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