carbon-components-svelte/types/Notification/NotificationActionButton.svelte.d.ts
Piper McCorkle 85d8a1f1c6
fix(notification): add extends to button
This way, props from Button can be used in NotificationActionButton and
still typecheck correctly.
2022-08-11 16:33:22 -05:00

16 lines
530 B
TypeScript

/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
import type { ButtonProps } from "../Button/Button.svelte";
export interface NotificationActionButtonProps extends ButtonProps {}
export default class NotificationActionButton extends SvelteComponentTyped<
NotificationActionButtonProps,
{
click: WindowEventMap["click"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
},
{ default: {} }
> {}