瀏覽代碼

fix(types): type VNodeChildren should allow type number (#13067)

close #12973
xonx 2 年之前
父節點
當前提交
24fcf69624
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      types/vnode.d.ts

+ 2 - 0
types/vnode.d.ts

@@ -22,6 +22,7 @@ type ScopedSlotReturnValue =
   | VNode
   | string
   | boolean
+  | number
   | null
   | undefined
   | ScopedSlotReturnArray
@@ -37,6 +38,7 @@ export type VNodeChildren =
   | [ScopedSlot]
   | string
   | boolean
+  | number
   | null
   | undefined
 export interface VNodeChildrenArrayContents