mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36: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
16
types/DataTable/ToolbarMenuItem.d.ts
vendored
16
types/DataTable/ToolbarMenuItem.d.ts
vendored
|
@ -1,15 +1,11 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponent } from "svelte";
|
||||
import { OverflowMenuItemProps } from "../OverflowMenu/OverflowMenuItem";
|
||||
|
||||
export interface ToolbarMenuItemProps extends OverflowMenuItemProps {}
|
||||
|
||||
export default class ToolbarMenuItem {
|
||||
$$prop_def: ToolbarMenuItemProps;
|
||||
$$slot_def: {
|
||||
default: {};
|
||||
};
|
||||
|
||||
$on(eventname: "click", cb: (event: WindowEventMap["click"]) => void): () => void;
|
||||
$on(eventname: "keydown", cb: (event: WindowEventMap["keydown"]) => void): () => void;
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
}
|
||||
export default class ToolbarMenuItem extends SvelteComponent<
|
||||
ToolbarMenuItemProps,
|
||||
{ click: WindowEventMap["click"]; keydown: WindowEventMap["keydown"] },
|
||||
{ default: {} }
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue