Skip to content

Commit

Permalink
types(core): added getSSRProps type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Apr 8, 2022
1 parent 245230e commit 5fb9660
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 @@ -38,8 +38,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 = any> = (
binding: DirectiveBinding<V>,
vnode: VNode
) => Data | undefined

Expand All @@ -51,7 +51,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 5fb9660

Please sign in to comment.