From: nandi95 <41805560+nandi95@users.noreply.github.com> Date: Mon, 27 May 2024 08:56:59 +0000 (+0100) Subject: chore(types): added `getSSRProps` type argument (#5691) X-Git-Tag: v3.4.28~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ffd5a601b95354c6025648a1c8b8566e2084d54;p=thirdparty%2Fvuejs%2Fcore.git chore(types): added `getSSRProps` type argument (#5691) --- diff --git a/packages/runtime-core/src/directives.ts b/packages/runtime-core/src/directives.ts index daaf28b151..feff9ad268 100644 --- a/packages/runtime-core/src/directives.ts +++ b/packages/runtime-core/src/directives.ts @@ -42,8 +42,8 @@ export type DirectiveHook | null, V = any> = ( prevVNode: Prev, ) => void -export type SSRDirectiveHook = ( - binding: DirectiveBinding, +export type SSRDirectiveHook = ( + binding: DirectiveBinding, vnode: VNode, ) => Data | undefined @@ -55,7 +55,7 @@ export interface ObjectDirective { updated?: DirectiveHook, V> beforeUnmount?: DirectiveHook unmounted?: DirectiveHook - getSSRProps?: SSRDirectiveHook + getSSRProps?: SSRDirectiveHook deep?: boolean }