Skip to content

Commit

Permalink
add inserted hook type to directive option (#3682)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn authored and yyx990803 committed Sep 16, 2016
1 parent 56960b5 commit 72a1527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/options.d.ts
Expand Up @@ -85,6 +85,7 @@ export type DirectiveFunction = (

export interface DirectiveOptions {
bind?: DirectiveFunction;
inserted?: DirectiveFunction;
update?: DirectiveFunction;
componentUpdated?: DirectiveFunction;
unbind?: DirectiveFunction;
Expand Down
1 change: 1 addition & 0 deletions types/test/options-test.ts
Expand Up @@ -109,6 +109,7 @@ Vue.component('component', {
directives: {
a: {
bind() {},
inserted() {},
update() {},
componentMounted() {},
unbind() {}
Expand Down

0 comments on commit 72a1527

Please sign in to comment.