types: improve directive typing (#253)

This commit is contained in:
Dmitry Sharshakov 2019-10-14 05:40:29 +03:00 committed by Evan You
parent 8e5ea98ccd
commit 374a85b861

View 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> {