Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 5fe1a98

Browse files
committed
chore: add return type for getvalidchildren
1 parent 5db6e92 commit 5fe1a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/utils/src/vue-utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { inject, InjectionKey, provide, isVNode, Slots } from 'vue'
1+
import { inject, InjectionKey, provide, isVNode, Slots, VNode } from 'vue'
22

33
export interface CreateContextOptions {
44
/**
@@ -57,7 +57,7 @@ export function createContext<ContextType>(options: CreateContextOptions = {}) {
5757
*
5858
* see https://github.com/vuejs/vue-next/blob/HEAD/packages/runtime-core/src/helpers/renderSlot.ts
5959
*/
60-
export function getValidChildren(slots: Slots | null) {
60+
export function getValidChildren(slots: Slots | null): VNode[] {
6161
const slotArray = slots?.default?.() || []
6262
return slotArray.filter((child) => {
6363
return isVNode(child)

0 commit comments

Comments
 (0)