Skip to content

Commit cac6ab5

Browse files
committed
chore: fix type issue
1 parent f7607d3 commit cac6ab5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/shared/src/normalizeProp.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ export function parseStringStyle(cssText: string): NormalizedStyle {
4141
return ret
4242
}
4343

44-
export function stringifyStyle(styles: NormalizedStyle | undefined): string {
44+
export function stringifyStyle(
45+
styles: NormalizedStyle | string | undefined
46+
): string {
4547
let ret = ''
46-
if (!styles) {
48+
if (!styles || isString(styles)) {
4749
return ret
4850
}
4951
for (const key in styles) {

0 commit comments

Comments
 (0)