Skip to content

Commit 6cfd6c7

Browse files
marshallshenyyx990803
authored andcommitted
change any to mixed to make it more type-safe (vuejs#4458)
1 parent 5fa45c3 commit 6cfd6c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flow/component.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ declare interface Component {
3333
$mount: (el?: Element | string, hydrating?: boolean) => Component;
3434
$forceUpdate: () => void;
3535
$destroy: () => void;
36-
$set: (obj: Array<any> | Object, key: any, val: any) => void;
36+
$set: (obj: Array<mixed> | Object, key: mixed, val: mixed) => void;
3737
$delete: (obj: Object, key: string) => void;
3838
$watch: (expOrFn: string | Function, cb: Function, options?: Object) => Function;
3939
$on: (event: string, fn: Function) => Component;
4040
$once: (event: string, fn: Function) => Component;
4141
$off: (event?: string, fn?: Function) => Component;
42-
$emit: (event: string, ...args: Array<any>) => Component;
42+
$emit: (event: string, ...args: Array<mixed>) => Component;
4343
$nextTick: (fn: Function) => void;
4444
$createElement: (
4545
tag?: string | Component,
@@ -87,7 +87,7 @@ declare interface Component {
8787
// markOnce
8888
_o: (vnode: VNode | Array<VNode>, index: number, key: string) => VNode | VNodeChildren;
8989
// toString
90-
_s: (value: any) => string;
90+
_s: (value: mixed) => string;
9191
// text to VNode
9292
_v: (value: string | number) => VNode;
9393
// toNumber
@@ -101,7 +101,7 @@ declare interface Component {
101101
// resolveFilter
102102
_f: (id: string) => Function;
103103
// renderList
104-
_l: (val: any, render: Function) => ?Array<VNode>;
104+
_l: (val: mixed, render: Function) => ?Array<VNode>;
105105
// renderSlot
106106
_t: (name: string, fallback: ?Array<VNode>, props: ?Object) => ?Array<VNode>;
107107
// apply v-bind object

0 commit comments

Comments
 (0)