types: avoid duplicate type declarations for renderer closure functions

This commit is contained in:
Evan You
2020-02-14 16:25:41 -05:00
parent e0f3c6b352
commit 96605b79a3
3 changed files with 124 additions and 88 deletions

View File

@@ -2,7 +2,7 @@ import { VNode, normalizeVNode, VNodeChild } from '../vnode'
import { isFunction, isArray, ShapeFlags } from '@vue/shared'
import { ComponentInternalInstance, handleSetupResult } from '../component'
import { Slots } from '../componentSlots'
import { RendererInternals, MoveType } from '../renderer'
import { RendererInternals, MoveType, SetupRenderEffectFn } from '../renderer'
import { queuePostFlushCb, queueJob } from '../scheduler'
import { updateHOCHostEl } from '../componentRenderUtils'
import { handleError, ErrorCodes } from '../errorHandling'
@@ -216,14 +216,7 @@ export interface SuspenseBoundary<
next(): HostNode | null
registerDep(
instance: ComponentInternalInstance,
setupRenderEffect: (
instance: ComponentInternalInstance,
initialVNode: VNode<HostNode, HostElement>,
container: HostElement | null,
anchor: HostNode | null,
parentSuspense: SuspenseBoundary<HostNode, HostElement> | null,
isSVG: boolean
) => void
setupRenderEffect: SetupRenderEffectFn<HostNode, HostElement>
): void
unmount(
parentSuspense: SuspenseBoundary<HostNode, HostElement> | null,