Browse Source

meta: provide better type declaration for svelte modules

0.x
Xymorot 3 months ago
parent
commit
b764346c88
2 changed files with 4 additions and 5 deletions
  1. +1
    -0
      .eslintrc.json
  2. +3
    -5
      declarations/svelte.d.ts

+ 1
- 0
.eslintrc.json View File

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


+ 3
- 5
declarations/svelte.d.ts 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 {}
}

Loading…
Cancel
Save