mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(typescript)!: support svelte 4 (#1773)
Closes #1753 The minimum Svelte version required for TypeScript users is now 3.55.
This commit is contained in:
parent
778b2c357f
commit
2f026f792a
192 changed files with 941 additions and 712 deletions
9
types/TooltipIcon/TooltipIcon.svelte.d.ts
vendored
9
types/TooltipIcon/TooltipIcon.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TooltipIconProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
|
||||
type RestProps = SvelteHTMLElements["button"];
|
||||
|
||||
export interface TooltipIconProps extends RestProps {
|
||||
/**
|
||||
* Specify the tooltip text.
|
||||
* Alternatively, use the "tooltipText" slot
|
||||
|
@ -14,7 +15,7 @@ export interface TooltipIconProps
|
|||
* Specify the icon to render
|
||||
* @default undefined
|
||||
*/
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the tooltip icon
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue