chore(types): use NormalizedStyle for consistency (#2590)
This commit is contained in:
parent
4dc457dae5
commit
8c57b9131d
@ -5,7 +5,7 @@ export type NormalizedStyle = Record<string, string | number>
|
|||||||
|
|
||||||
export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
|
export function normalizeStyle(value: unknown): NormalizedStyle | undefined {
|
||||||
if (isArray(value)) {
|
if (isArray(value)) {
|
||||||
const res: Record<string, string | number> = {}
|
const res: NormalizedStyle = {}
|
||||||
for (let i = 0; i < value.length; i++) {
|
for (let i = 0; i < value.length; i++) {
|
||||||
const item = value[i]
|
const item = value[i]
|
||||||
const normalized = normalizeStyle(
|
const normalized = normalizeStyle(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user