Fix linting and exporting

pull/3893/head
Nitay Rabinovich 5 years ago
parent a7a75cb550
commit 97e44099b5

@ -1,4 +1,4 @@
declare module '*.svelte' { declare module '*.svelte' {
type SvelteComponent = typeof import('./internal/ComponentApi').SvelteComponentApi // eslint-disable-next-line import/no-unresolved
export default SvelteComponent export { default } from 'svelte/internal/ComponentApi';
} }

@ -1,16 +1,15 @@
type Props = Record<string, any>; type Props = Record<string, any>;
export declare class SvelteComponentApi { export declare class SvelteComponentApi {
constructor(options: { constructor (options: {
target: Element; target: Element;
anchor?: Element; anchor?: Element;
props?: Props; props?: Props;
hydrate?: boolean; hydrate?: boolean;
intro?: boolean; intro?: boolean;
}); });
$set(props: Props): void; $set(props: Props): void;
$on<T = any>(event: string, callback: (event: CustomEvent<T>) => void): () => void; $on<T = any>(event: string, callback: (event: CustomEvent<T>) => void): () => void;
$destroy(): void; $destroy(): void;
[accessor: string]: any; [accessor: string]: any;
} }
export default SvelteComponentApi;
Loading…
Cancel
Save