mirror of https://github.com/vuejs/core.git
chore(types): added `getSSRProps` type argument (#5691)
This commit is contained in:
parent
b63566aaeb
commit
1ffd5a601b
|
@ -42,8 +42,8 @@ export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (
|
||||||
prevVNode: Prev,
|
prevVNode: Prev,
|
||||||
) => void
|
) => void
|
||||||
|
|
||||||
export type SSRDirectiveHook = (
|
export type SSRDirectiveHook<V> = (
|
||||||
binding: DirectiveBinding,
|
binding: DirectiveBinding<V>,
|
||||||
vnode: VNode,
|
vnode: VNode,
|
||||||
) => Data | undefined
|
) => Data | undefined
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ export interface ObjectDirective<T = any, V = any> {
|
||||||
updated?: DirectiveHook<T, VNode<any, T>, V>
|
updated?: DirectiveHook<T, VNode<any, T>, V>
|
||||||
beforeUnmount?: DirectiveHook<T, null, V>
|
beforeUnmount?: DirectiveHook<T, null, V>
|
||||||
unmounted?: DirectiveHook<T, null, V>
|
unmounted?: DirectiveHook<T, null, V>
|
||||||
getSSRProps?: SSRDirectiveHook
|
getSSRProps?: SSRDirectiveHook<V>
|
||||||
deep?: boolean
|
deep?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue