From: Pick Date: Tue, 14 Jul 2020 20:33:30 +0000 (+0800) Subject: refactor(types): improve code readability & friendly to type hints (#1560) X-Git-Tag: v3.0.0-beta.21~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b60870f8a1c53c50bdcb149957cb5eccc2880bd;p=thirdparty%2Fvuejs%2Fcore.git refactor(types): improve code readability & friendly to type hints (#1560) --- diff --git a/packages/runtime-core/src/vnode.ts b/packages/runtime-core/src/vnode.ts index 176f29ace3..aa87d440a0 100644 --- a/packages/runtime-core/src/vnode.ts +++ b/packages/runtime-core/src/vnode.ts @@ -93,8 +93,7 @@ type VNodeChildAtom = | undefined | void -export interface VNodeArrayChildren - extends Array {} +export type VNodeArrayChildren = Array export type VNodeChild = VNodeChildAtom | VNodeArrayChildren