]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(types): use NormalizedStyle for consistency (#2590)
authoredison <daiwei521@126.com>
Thu, 1 Apr 2021 03:29:24 +0000 (11:29 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Apr 2021 03:29:24 +0000 (11:29 +0800)
packages/shared/src/normalizeProp.ts

index 1ff825bd8f5ce8c292cb6450306c467f122d9690..76eec4b582d6ca648742e45e85342e3d3b35030f 100644 (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(