meta: provide better type declaration for svelte modules
This commit is contained in:
parent
09dc14726d
commit
b764346c88
|
@ -51,6 +51,7 @@
|
|||
"**/*.{spec,mock}.*",
|
||||
"src/**/test/*",
|
||||
"src/renderer/**/*",
|
||||
"declarations/**/*",
|
||||
"templates/**/*",
|
||||
"scripts/**/*"
|
||||
]
|
||||
|
|
|
@ -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 {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue