소스 검색

types: improve directive typing (#253)

Dmitry Sharshakov 6 년 전
부모
커밋
374a85b861
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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> {