diff --git a/.eslintrc.json b/.eslintrc.json index 8098206..efc11ae 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -51,6 +51,7 @@ "**/*.{spec,mock}.*", "src/**/test/*", "src/renderer/**/*", + "declarations/**/*", "templates/**/*", "scripts/**/*" ] diff --git a/declarations/svelte.d.ts b/declarations/svelte.d.ts index 84338ad..038dbc9 100644 --- a/declarations/svelte.d.ts +++ b/declarations/svelte.d.ts @@ -1,7 +1,5 @@ declare module '*.svelte' { - class Component { - public constructor(options: { target: HTMLElement }); - } - - export = Component; + import { SvelteComponentTyped } from 'svelte'; + // noinspection JSUnusedGlobalSymbols -- because it is used + export class Component extends SvelteComponentTyped {} }