import { Slot } from '../componentSlots' import { isArray } from '@vue/shared' interface CompiledSlotDescriptor { name: string fn: Slot } export function createSlots( slots: Record, dynamicSlots: ( | CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[] ): Record { for (let i = 0; i < dynamicSlots.length; i++) { const slot = dynamicSlots[i] // array of dynamic slot generated by