chore(types): use NormalizedStyle for consistency (#2590)

This commit is contained in:
edison
2021-04-01 11:29:24 +08:00
committed by GitHub
parent 4dc457dae5
commit 8c57b9131d

View File

@@ -5,7 +5,7 @@ export type NormalizedStyle = Record<string, string | number>
export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
if (isArray(value)) {
const res: Record<string, string | number> = {}
const res: NormalizedStyle = {}
for (let i = 0; i < value.length; i++) {
const item = value[i]
const normalized = normalizeStyle(