Sfoglia il codice sorgente

types: improve directive typing (#253)

Dmitry Sharshakov 6 anni fa
parent
commit
374a85b861
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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> {