UNPKG

475 BTypeScriptView Raw
1declare module '*.svelte' {
2 type Props = Record<string, any>;
3 export default class {
4 constructor(options: {
5 target: Element;
6 anchor?: Element;
7 props?: Props;
8 hydrate?: boolean;
9 intro?: boolean;
10 });
11 $set(props: Props): void;
12 $on<T = any>(event: string, callback: (event: CustomEvent<T>) => void): () => void;
13 $destroy(): void;
14 [accessor: string]: any;
15 }
16}