|
|
@ -102,7 +102,7 @@ export interface SvelteComponentDev<
|
|
|
|
Events extends Record<string, any> = any,
|
|
|
|
Events extends Record<string, any> = any,
|
|
|
|
Slots extends Record<string, any> = any
|
|
|
|
Slots extends Record<string, any> = any
|
|
|
|
> {
|
|
|
|
> {
|
|
|
|
$set(props?: Partial<Props> & Record<string, any>): void;
|
|
|
|
$set(props?: Partial<Props>): void;
|
|
|
|
$on<K extends Extract<keyof Events, string>>(type: K, callback: (e: Events[K]) => void): () => void;
|
|
|
|
$on<K extends Extract<keyof Events, string>>(type: K, callback: (e: Events[K]) => void): () => void;
|
|
|
|
$destroy(): void;
|
|
|
|
$destroy(): void;
|
|
|
|
[accessor: string]: any;
|
|
|
|
[accessor: string]: any;
|
|
|
@ -138,7 +138,7 @@ export class SvelteComponentDev<
|
|
|
|
constructor(options: {
|
|
|
|
constructor(options: {
|
|
|
|
target: Element;
|
|
|
|
target: Element;
|
|
|
|
anchor?: Element;
|
|
|
|
anchor?: Element;
|
|
|
|
props?: Props & Record<string, any>;
|
|
|
|
props?: Props;
|
|
|
|
hydrate?: boolean;
|
|
|
|
hydrate?: boolean;
|
|
|
|
intro?: boolean;
|
|
|
|
intro?: boolean;
|
|
|
|
$$inline?: boolean;
|
|
|
|
$$inline?: boolean;
|
|
|
|