Skip to content

Commit

Permalink
chore(types): use NormalizedStyle for consistency (#2590)
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Apr 1, 2021
1 parent 4dc457d commit 8c57b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/normalizeProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8c57b91

Please sign in to comment.