Преглед изворни кода

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