Pārlūkot izejas kodu

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

close #12973
xonx 2 gadi atpakaļ
vecāks
revīzija
24fcf69624
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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