fix(notification-action-button): prop types should extend Button (#1442)

This commit is contained in:
Piper McCorkle 2022-08-11 20:45:41 -05:00 committed by GitHub
commit b6e4d133da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

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

View file

@ -1,4 +1,6 @@
<script>
/** @extends {"../Button/Button.svelte"} ButtonProps */
import Button from "../Button/Button.svelte";
</script>

View file

@ -1,7 +1,8 @@
/// <reference types="svelte" />
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,