chore(types): added `getSSRProps` type argument (#5691)

This commit is contained in:
nandi95 2024-05-27 09:56:59 +01:00 committed by GitHub
parent b63566aaeb
commit 1ffd5a601b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -42,8 +42,8 @@ export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (
prevVNode: Prev,
) => void
export type SSRDirectiveHook = (
binding: DirectiveBinding,
export type SSRDirectiveHook<V> = (
binding: DirectiveBinding<V>,
vnode: VNode,
) => Data | undefined
@ -55,7 +55,7 @@ export interface ObjectDirective<T = any, V = any> {
updated?: DirectiveHook<T, VNode<any, T>, V>
beforeUnmount?: DirectiveHook<T, null, V>
unmounted?: DirectiveHook<T, null, V>
getSSRProps?: SSRDirectiveHook
getSSRProps?: SSRDirectiveHook<V>
deep?: boolean
}