mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(notification-action-button): prop types should extend Button
(#1442)
This commit is contained in:
parent
ab5eff5205
commit
b6e4d133da
3 changed files with 9 additions and 2 deletions
|
@ -7376,7 +7376,11 @@
|
||||||
{ "type": "forwarded", "name": "mouseleave", "element": "Button" }
|
{ "type": "forwarded", "name": "mouseleave", "element": "Button" }
|
||||||
],
|
],
|
||||||
"typedefs": [],
|
"typedefs": [],
|
||||||
"rest_props": { "type": "InlineComponent", "name": "Button" }
|
"rest_props": { "type": "InlineComponent", "name": "Button" },
|
||||||
|
"extends": {
|
||||||
|
"interface": "ButtonProps",
|
||||||
|
"import": "\"../Button/Button.svelte\""
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"moduleName": "NotificationButton",
|
"moduleName": "NotificationButton",
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
|
/** @extends {"../Button/Button.svelte"} ButtonProps */
|
||||||
|
|
||||||
import Button from "../Button/Button.svelte";
|
import Button from "../Button/Button.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
/// <reference types="svelte" />
|
/// <reference types="svelte" />
|
||||||
import type { SvelteComponentTyped } from "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<
|
export default class NotificationActionButton extends SvelteComponentTyped<
|
||||||
NotificationActionButtonProps,
|
NotificationActionButtonProps,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue