Skip to content

Commit

Permalink
refactor(types): only use a single definition for VNodeDirective
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Apr 13, 2018
1 parent 7ee7738 commit 8523bb0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,9 @@ export interface WatchOptionsWithHandler<T> extends WatchOptions {
handler: WatchHandler<T>;
}

export interface DirectiveBinding {
readonly name: string;
readonly rawName: string;
readonly def: DirectiveOptions;
readonly value: any;
readonly oldValue: any;
readonly expression: any;
readonly arg: string;
readonly modifiers: { [key: string]: boolean };
}

export type DirectiveFunction = (
el: HTMLElement,
binding: DirectiveBinding,
binding: Readonly<VNodeDirective>,
vnode: VNode,
oldVnode: VNode
) => void;
Expand Down

0 comments on commit 8523bb0

Please sign in to comment.