Skip to content

Commit 313ad8f

Browse files
bluemsnyyx990803
authored andcommitted
fix flow lifecycle �method name [[email protected]] (vuejs#3762)
fix lifecycle �method name `init` to `beforeCreate`
1 parent 43b489b commit 313ad8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ declare type ComponentOptions = {
3434
render: () => VNode;
3535
staticRenderFns?: Array<() => VNode>;
3636
// lifecycle
37-
init?: Function;
37+
beforeCreate?: Function;
3838
created?: Function;
3939
beforeMount?: Function;
4040
mounted?: Function;

0 commit comments

Comments
 (0)