wip(ssr): vdom serialization

This commit is contained in:
Evan You
2020-01-28 18:48:27 -05:00
parent 8857b4f288
commit 6f43c4b516
11 changed files with 286 additions and 48 deletions

View File

@@ -2,7 +2,7 @@ import { isArray, isString, isObject } from './'
export function normalizeStyle(
value: unknown
): Record<string, string | number> | void {
): Record<string, string | number> | undefined {
if (isArray(value)) {
const res: Record<string, string | number> = {}
for (let i = 0; i < value.length; i++) {