export type Block = Node | Fragment | VaporComponentInstance | Block[]
-export type BlockRenderFn = (...args: any[]) => Block
+export type BlockFn = (...args: any[]) => Block
export class Fragment {
nodes: Block
document.createTextNode('')
}
- update(render?: BlockRenderFn, key: any = render): void {
+ update(render?: BlockFn, key: any = render): void {
if (key === this.key) return
this.key = key
import { EMPTY_OBJ, NO, hasOwn, isArray, isFunction } from '@vue/shared'
-import { type Block, type BlockRenderFn, DynamicFragment } from './block'
+import { type Block, type BlockFn, DynamicFragment } from './block'
import type { RawProps } from './componentProps'
import { currentInstance } from '@vue/runtime-core'
import type { VaporComponentInstance } from './component'
export type StaticSlots = Record<string, Slot>
-export type Slot = BlockRenderFn
+export type Slot = BlockFn
export type DynamicSlot = { name: string; fn: Slot }
export type DynamicSlotFn = () => DynamicSlot | DynamicSlot[]