From b6e4d133da0eb6ca2892bfc3252010dd2d516e14 Mon Sep 17 00:00:00 2001 From: Piper McCorkle Date: Thu, 11 Aug 2022 20:45:41 -0500 Subject: [PATCH] fix(notification-action-button): prop types should extend `Button` (#1442) --- docs/src/COMPONENT_API.json | 6 +++++- src/Notification/NotificationActionButton.svelte | 2 ++ types/Notification/NotificationActionButton.svelte.d.ts | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 6ffbcfef..3e2e91ce 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -7376,7 +7376,11 @@ { "type": "forwarded", "name": "mouseleave", "element": "Button" } ], "typedefs": [], - "rest_props": { "type": "InlineComponent", "name": "Button" } + "rest_props": { "type": "InlineComponent", "name": "Button" }, + "extends": { + "interface": "ButtonProps", + "import": "\"../Button/Button.svelte\"" + } }, { "moduleName": "NotificationButton", diff --git a/src/Notification/NotificationActionButton.svelte b/src/Notification/NotificationActionButton.svelte index 721a4f9e..d6cf6107 100644 --- a/src/Notification/NotificationActionButton.svelte +++ b/src/Notification/NotificationActionButton.svelte @@ -1,4 +1,6 @@ diff --git a/types/Notification/NotificationActionButton.svelte.d.ts b/types/Notification/NotificationActionButton.svelte.d.ts index 247d0bcc..44908d55 100644 --- a/types/Notification/NotificationActionButton.svelte.d.ts +++ b/types/Notification/NotificationActionButton.svelte.d.ts @@ -1,7 +1,8 @@ /// import type { SvelteComponentTyped } from "svelte"; +import type { ButtonProps } from "../Button/Button.svelte"; -export interface NotificationActionButtonProps {} +export interface NotificationActionButtonProps extends ButtonProps {} export default class NotificationActionButton extends SvelteComponentTyped< NotificationActionButtonProps,