Skip to content

Commit

Permalink
refactor(types): improve code readability & friendly to type hints (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pick authored Jul 14, 2020
1 parent cb6a091 commit 2b60870
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/runtime-core/src/vnode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ type VNodeChildAtom =
| undefined
| void

export interface VNodeArrayChildren
extends Array<VNodeArrayChildren | VNodeChildAtom> {}
export type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>

export type VNodeChild = VNodeChildAtom | VNodeArrayChildren

Expand Down

0 comments on commit 2b60870

Please sign in to comment.