meta: provide better type declaration for svelte modules

This commit is contained in:
Xymorot 2021-01-06 14:53:10 +01:00
parent 09dc14726d
commit b764346c88
2 changed files with 4 additions and 5 deletions

View File

@ -51,6 +51,7 @@
"**/*.{spec,mock}.*",
"src/**/test/*",
"src/renderer/**/*",
"declarations/**/*",
"templates/**/*",
"scripts/**/*"
]

View File

@ -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 {}
}