]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: improve directive typing (#253)
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
Mon, 14 Oct 2019 02:40:29 +0000 (05:40 +0300)
committerEvan You <yyx990803@gmail.com>
Mon, 14 Oct 2019 02:40:29 +0000 (22:40 -0400)
packages/runtime-core/src/directives.ts

index 2e46b6dbad203507d8a84a92a37c9163b86adead..e3ee28b7e2a6de3d87fc4b21083bcd8acaa0d310 100644 (file)
@@ -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> {