Fix linting and exporting

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

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

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