Skip to content

Commit

Permalink
chore(types): added getSSRProps type argument (#5691)
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 authored May 27, 2024
1 parent b63566a commit 1ffd5a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-core/src/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
}

Expand Down

0 comments on commit 1ffd5a6

Please sign in to comment.