mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(types): use the SvelteComponentTyped interface in the TypeScript definitions (#515)
This commit is contained in:
parent
4e4234f83d
commit
bcd28de86e
161 changed files with 6379 additions and 6362 deletions
20
types/Notification/NotificationIcon.d.ts
vendored
20
types/Notification/NotificationIcon.d.ts
vendored
|
@ -1,11 +1,18 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface NotificationIconProps {
|
||||
/**
|
||||
* Specify the kind of notification icon
|
||||
* @default "error"
|
||||
*/
|
||||
kind?: "error" | "info" | "info-square" | "success" | "warning" | "warning-alt";
|
||||
kind?:
|
||||
| "error"
|
||||
| "info"
|
||||
| "info-square"
|
||||
| "success"
|
||||
| "warning"
|
||||
| "warning-alt";
|
||||
|
||||
/**
|
||||
* Set the type of notification
|
||||
|
@ -20,9 +27,8 @@ export interface NotificationIconProps {
|
|||
iconDescription?: string;
|
||||
}
|
||||
|
||||
export default class NotificationIcon {
|
||||
$$prop_def: NotificationIconProps;
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
}
|
||||
export default class NotificationIcon extends SvelteComponentTyped<
|
||||
NotificationIconProps,
|
||||
{},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue