mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
refactor(types): use typed SvelteComponent interface for typing components
This commit is contained in:
parent
4226535338
commit
dab82d3479
156 changed files with 1379 additions and 1667 deletions
8
types/Notification/NotificationIcon.d.ts
vendored
8
types/Notification/NotificationIcon.d.ts
vendored
|
@ -1,4 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponent } from "svelte";
|
||||
|
||||
export interface NotificationIconProps {
|
||||
/**
|
||||
|
@ -20,9 +21,4 @@ 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 SvelteComponent<NotificationIconProps, {}, {}> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue