chore: fix type issue
This commit is contained in:
parent
f7607d3a15
commit
cac6ab5bdb
@ -41,9 +41,11 @@ export function parseStringStyle(cssText: string): NormalizedStyle {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
export function stringifyStyle(styles: NormalizedStyle | undefined): string {
|
export function stringifyStyle(
|
||||||
|
styles: NormalizedStyle | string | undefined
|
||||||
|
): string {
|
||||||
let ret = ''
|
let ret = ''
|
||||||
if (!styles) {
|
if (!styles || isString(styles)) {
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
for (const key in styles) {
|
for (const key in styles) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user