Parcourir la source

types: improve directive typing (#253)

Dmitry Sharshakov il y a 6 ans
Parent
commit
374a85b861
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/runtime-core/src/directives.ts

+ 1 - 1
packages/runtime-core/src/directives.ts

@@ -31,7 +31,7 @@ export type DirectiveHook<T = any> = (
   el: T,
   binding: DirectiveBinding,
   vnode: VNode<any, T>,
-  prevVNode: VNode | null
+  prevVNode: VNode<any, T> | null
 ) => void
 
 export interface Directive<T = any> {