From cac6ab5bdb712a3872dfa2b1cd4751d80cb4f38c Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 19 Jul 2021 11:11:17 -0400 Subject: [PATCH] chore: fix type issue --- packages/shared/src/normalizeProp.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index ec765be0f9..cab8090692 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/packages/shared/src/normalizeProp.ts @@ -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) { -- 2.47.2