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
|
||||
}
|
||||
|
||||
export function stringifyStyle(styles: NormalizedStyle | undefined): string {
|
||||
export function stringifyStyle(
|
||||
styles: NormalizedStyle | string | undefined
|
||||
): string {
|
||||
let ret = ''
|
||||
if (!styles) {
|
||||
if (!styles || isString(styles)) {
|
||||
return ret
|
||||
}
|
||||
for (const key in styles) {
|
||||
|
Loading…
Reference in New Issue
Block a user