meta: provide better type declaration for svelte modules
This commit is contained in:
parent
09dc14726d
commit
b764346c88
|
@ -51,6 +51,7 @@
|
||||||
"**/*.{spec,mock}.*",
|
"**/*.{spec,mock}.*",
|
||||||
"src/**/test/*",
|
"src/**/test/*",
|
||||||
"src/renderer/**/*",
|
"src/renderer/**/*",
|
||||||
|
"declarations/**/*",
|
||||||
"templates/**/*",
|
"templates/**/*",
|
||||||
"scripts/**/*"
|
"scripts/**/*"
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
declare module '*.svelte' {
|
declare module '*.svelte' {
|
||||||
class Component {
|
import { SvelteComponentTyped } from 'svelte';
|
||||||
public constructor(options: { target: HTMLElement });
|
// noinspection JSUnusedGlobalSymbols -- because it is used
|
||||||
}
|
export class Component extends SvelteComponentTyped {}
|
||||||
|
|
||||||
export = Component;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue