You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`import type { ${typeImport} } from './components/${component}/${importFile}'`
40
71
}).join('\n')}
41
72
42
73
${getAdditionalTypeImports()}
@@ -58,8 +89,12 @@ const buildTypes = type => {
58
89
if(type==='svelte'){
59
90
returnformat(`
60
91
import type { Component } from 'svelte'
92
+
61
93
${components.map(component=>{
62
-
return`import type { ${getTypeName(component,'Svelte')} as W${getTypeName(component,'Svelte')} } from './components/${component}/${component.toLowerCase()}'`
94
+
consttypeName=getTypeName(component,'Svelte')
95
+
constimportFile=getImportFile(component,'Svelte')
96
+
97
+
return`import type { ${typeName} as W${typeName} } from './components/${component}/${importFile}'`
63
98
}).join('\n')}
64
99
65
100
${getAdditionalTypeImports()}
@@ -81,8 +116,12 @@ const buildTypes = type => {
81
116
if(type==='react'){
82
117
returnformat(`
83
118
import { FC } from 'react'
119
+
84
120
${components.map(component=>{
85
-
return`import type { ${getTypeName(component,'React')} as W${getTypeName(component,'React')} } from './components/${component}/${component.toLowerCase()}'`
121
+
consttypeName=getTypeName(component,'React')
122
+
constimportFile=getImportFile(component,'React')
123
+
124
+
return`import type { ${typeName} as W${typeName} } from './components/${component}/${importFile}'`
0 commit comments