From 8c57b9131dbf79062fe6fa08c758a065b4bcbf14 Mon Sep 17 00:00:00 2001 From: edison Date: Thu, 1 Apr 2021 11:29:24 +0800 Subject: [PATCH] chore(types): use NormalizedStyle for consistency (#2590) --- packages/shared/src/normalizeProp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index 1ff825bd..76eec4b5 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/packages/shared/src/normalizeProp.ts @@ -5,7 +5,7 @@ export type NormalizedStyle = Record export function normalizeStyle(value: unknown): NormalizedStyle | undefined { if (isArray(value)) { - const res: Record = {} + const res: NormalizedStyle = {} for (let i = 0; i < value.length; i++) { const item = value[i] const normalized = normalizeStyle(