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/Tooltip/Tooltip.svelte.d.ts
vendored
9
types/Tooltip/Tooltip.svelte.d.ts
vendored
|
@ -1,8 +1,9 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
import type { SvelteHTMLElements } from "svelte/elements";
|
||||
|
||||
export interface TooltipProps
|
||||
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
type RestProps = SvelteHTMLElements["div"];
|
||||
|
||||
export interface TooltipProps extends RestProps {
|
||||
/**
|
||||
* Set the alignment of the tooltip relative to the icon
|
||||
* @default "center"
|
||||
|
@ -32,7 +33,7 @@ export interface TooltipProps
|
|||
* Default to `<Information />`
|
||||
* @default undefined
|
||||
*/
|
||||
icon?: typeof import("svelte").SvelteComponent;
|
||||
icon?: typeof import("svelte").SvelteComponent<any>;
|
||||
|
||||
/**
|
||||
* Specify the ARIA label for the tooltip button
|
||||
|
|
3
types/Tooltip/TooltipFooter.svelte.d.ts
vendored
3
types/Tooltip/TooltipFooter.svelte.d.ts
vendored
|
@ -1,4 +1,3 @@
|
|||
/// <reference types="svelte" />
|
||||
import type { SvelteComponentTyped } from "svelte";
|
||||
|
||||
export interface TooltipFooterProps {
|
||||
|
@ -11,6 +10,6 @@ export interface TooltipFooterProps {
|
|||
|
||||
export default class TooltipFooter extends SvelteComponentTyped<
|
||||
TooltipFooterProps,
|
||||
{},
|
||||
Record<string, any>,
|
||||
{ default: {} }
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue