Browse Source

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

close #12973
xonx 2 years ago
parent
commit
24fcf69624
1 changed files with 2 additions and 0 deletions
  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