mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
chore: change peerDependencies
- use Svelte 3.55.0 since that's the minimum target for SvelteKit and svelte-check - revert to using SvelteComponentTyped for high compatibility. We'll migrate to SvelteComponent after dropping Svelte 3
This commit is contained in:
parent
0ac2faa8bc
commit
f014b9d7a0
168 changed files with 804 additions and 516 deletions
8
types/TreeView/TreeView.svelte.d.ts
vendored
8
types/TreeView/TreeView.svelte.d.ts
vendored
|
@ -1,12 +1,12 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponent } from "svelte";
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export type TreeNodeId = string | number;
|
||||
|
||||
export interface TreeNode {
|
||||
id: TreeNodeId;
|
||||
text: any;
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
disabled?: boolean;
|
||||
children?: TreeNode[];
|
||||
}
|
||||
|
@ -55,9 +55,11 @@ export interface TreeViewProps
|
|||
* @default false
|
||||
*/
|
||||
hideLabel?: boolean;
|
||||
|
||||
[key: `data-${string}`]: any;
|
||||
}
|
||||
|
||||
export default class TreeView extends SvelteComponent<
|
||||
export default class TreeView extends SvelteComponentTyped<
|
||||
TreeViewProps,
|
||||
{
|
||||
select: CustomEvent<TreeNode & { expanded: boolean; leaf: boolean }>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue