meta: provide better type declaration for svelte modules

Этот коммит содержится в:
Xymorot 2021-01-06 14:53:10 +01:00
родитель 09dc14726d
Коммит b764346c88
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

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

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