File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,14 @@ const buildTypes = type => {
45
45
}
46
46
47
47
return format ( `
48
+ import { SvelteComponent } from 'svelte'
48
49
${ components . map ( component => {
49
50
return `import type { ${ getTypeName ( component ) } } from './components/${ component } /${ component . toLowerCase ( ) } '`
50
51
} ) . join ( '\n' ) }
51
52
52
53
declare module 'webcoreui/${ type } ' {
53
54
${ components . map ( component => {
54
- return `export function ${ component } (_props: ${ getTypeName ( component ) } ): any `
55
+ return `export class ${ component } extends SvelteComponent< ${ getTypeName ( component ) } > {} `
55
56
} ) . join ( '\n\t' ) }
56
57
}
57
58
` )
@@ -62,6 +63,7 @@ const buildTypes = type => {
62
63
const componentsWithoutReactSpecificTypes = [
63
64
'Accordion' ,
64
65
'Avatar' ,
66
+ 'Breadcrumb' ,
65
67
'Icon' ,
66
68
'Rating' ,
67
69
'Spinner' ,
You can’t perform that action at this time.
0 commit comments