Skip to content

Commit 5fb9660

Browse files
committed
types(core): added getSSRProps type argument
1 parent 245230e commit 5fb9660

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
@@ -38,8 +38,8 @@ export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (
3838
prevVNode: Prev
3939
) => void
4040

41-
export type SSRDirectiveHook = (
42-
binding: DirectiveBinding,
41+
export type SSRDirectiveHook<V = any> = (
42+
binding: DirectiveBinding<V>,
4343
vnode: VNode
4444
) => Data | undefined
4545

@@ -51,7 +51,7 @@ export interface ObjectDirective<T = any, V = any> {
5151
updated?: DirectiveHook<T, VNode<any, T>, V>
5252
beforeUnmount?: DirectiveHook<T, null, V>
5353
unmounted?: DirectiveHook<T, null, V>
54-
getSSRProps?: SSRDirectiveHook
54+
getSSRProps?: SSRDirectiveHook<V>
5555
deep?: boolean
5656
}
5757

0 commit comments

Comments
 (0)