Skip to content

Commit

Permalink
Add missing lifecycle definition (#4251)
Browse files Browse the repository at this point in the history
* add missing lifecycle definition

* add activated lifecycle tests
  • Loading branch information
HerringtonDarkholme authored and yyx990803 committed Nov 19, 2016
1 parent 4995ce5 commit 4dccbbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export interface ComponentOptions<V extends Vue> {
mounted?(this: V): void;
beforeUpdate?(this: V): void;
updated?(this: V): void;
activated?(this: V): void;
deactivated?(this: V): void;

directives?: { [key: string]: DirectiveOptions | DirectiveFunction };
components?: { [key: string]: Component | AsyncComponent };
Expand Down
2 changes: 2 additions & 0 deletions types/test/options-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ Vue.component('component', {
mounted() {},
beforeUpdate() {},
updated() {},
activated() {},
deactivated() {},

directives: {
a: {
Expand Down

0 comments on commit 4dccbbc

Please sign in to comment.