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:
Enrico Sacchetti 2023-07-01 22:06:34 -04:00
commit f014b9d7a0
No known key found for this signature in database
GPG key ID: 3374B89ECA60D796
168 changed files with 804 additions and 516 deletions

View file

@ -1,5 +1,5 @@
/// <reference types="svelte" />
import type { SvelteComponent } from "svelte";
import type { SvelteComponentTyped } from "svelte";
export interface HeaderActionProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
@ -14,14 +14,14 @@ export interface HeaderActionProps
* Defaults to `<Switcher size={20} />`
* @default undefined
*/
icon?: typeof import("svelte").SvelteComponent;
icon?: typeof import("svelte").SvelteComponent<any>;
/**
* Specify the icon to render when the action panel is open.
* Defaults to `<Close size={20} />`
* @default undefined
*/
closeIcon?: typeof import("svelte").SvelteComponent;
closeIcon?: typeof import("svelte").SvelteComponent<any>;
/**
* Specify the text
@ -42,9 +42,11 @@ export interface HeaderActionProps
* @default { duration: 200 }
*/
transition?: false | import("svelte/transition").SlideParams;
[key: `data-${string}`]: any;
}
export default class HeaderAction extends SvelteComponent<
export default class HeaderAction extends SvelteComponentTyped<
HeaderActionProps,
{
open: CustomEvent<null>;