We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8e3d0 commit 0f135b9Copy full SHA for 0f135b9
package.json
@@ -3,7 +3,7 @@
3
"description": "Typescript declaration generator for svelte with typescript",
4
"main": "dist/index.js",
5
"types": "dist/index.ts",
6
- "version": "0.3.4",
+ "version": "0.3.5",
7
"license": "MIT",
8
"homepage": "https://github.com/andrelmlins/svelte-dts",
9
"repository": "https://github.com/andrelmlins/svelte-dts",
src/transformer/svelte.ts
@@ -60,7 +60,7 @@ class SvelteTransformer implements ITransformer {
60
(item) => item.getText(this.sourceFile) === newType.getText(this.sourceFile)
61
);
62
63
- if (!includeType) {
+ if (!includeType || this.typesForSearch.length === 0) {
64
this.typesForSearch.push(newType);
65
}
66
0 commit comments