Skip to content

Commit 74b1565

Browse files
committed
fix(svelte): fix issue with React.CSSProperties in types
fixes #4255
1 parent 41f65cd commit 74b1565

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/build-svelte-typings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ function generateComponentProps(propsContent) {
3737
.replace('ICON_PROPS', ICON_PROPS)
3838
.replace('ROUTER_PROPS', ROUTER_PROPS)
3939
.replace('ACTIONS_PROPS', ACTIONS_PROPS)
40+
.replace(/React.CSSProperties/g, 'string')
4041
.split('\n')
4142
.map((line) => line.trim())
4243
.filter((line) => !!line)
@@ -48,6 +49,7 @@ function generateComponentProps(propsContent) {
4849
}
4950
props[propName] = propValue.trim();
5051
});
52+
5153
['id', 'style', 'className', 'ref', 'slot', 'children'].forEach((key) => {
5254
delete props[key];
5355
});

0 commit comments

Comments
 (0)