Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 1ffd5a6

Browse files
authored
chore(types): added getSSRProps type argument (#5691)
1 parent b63566a commit 1ffd5a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime-core/src/directives.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (
4242
prevVNode: Prev,
4343
) => void
4444

45-
export type SSRDirectiveHook = (
46-
binding: DirectiveBinding,
45+
export type SSRDirectiveHook<V> = (
46+
binding: DirectiveBinding<V>,
4747
vnode: VNode,
4848
) => Data | undefined
4949

@@ -55,7 +55,7 @@ export interface ObjectDirective<T = any, V = any> {
5555
updated?: DirectiveHook<T, VNode<any, T>, V>
5656
beforeUnmount?: DirectiveHook<T, null, V>
5757
unmounted?: DirectiveHook<T, null, V>
58-
getSSRProps?: SSRDirectiveHook
58+
getSSRProps?: SSRDirectiveHook<V>
5959
deep?: boolean
6060
}
6161

0 commit comments

Comments
 (0)