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
12
types/Select/SelectItem.d.ts
vendored
12
types/Select/SelectItem.d.ts
vendored
|
@ -1,4 +1,5 @@
|
|||
/// <reference types="svelte" />
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface SelectItemProps {
|
||||
/**
|
||||
|
@ -26,9 +27,8 @@ export interface SelectItemProps {
|
|||
disabled?: boolean;
|
||||
}
|
||||
|
||||
export default class SelectItem {
|
||||
$$prop_def: SelectItemProps;
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
}
|
||||
export default class SelectItem extends SvelteComponentTyped<
|
||||
SelectItemProps,
|
||||
{},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue