Procházet zdrojové kódy

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

edison před 5 roky
rodič
revize
8c57b9131d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/shared/src/normalizeProp.ts

+ 1 - 1
packages/shared/src/normalizeProp.ts

@@ -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(