forked from vuejs/vue-test-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.flow.js
47 lines (43 loc) · 1.28 KB
/
options.flow.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
declare type Options = {
// eslint-disable-line no-undef
attachToDocument?: boolean,
attachTo?: HTMLElement | string,
propsData?: Object,
mocks?: Object,
methods?: { [key: string]: Function },
slots?: SlotsObject,
scopedSlots?: { [key: string]: string | Function },
localVue?: Component,
provide?: Object,
stubs?: Stubs,
context?: Object,
attrs?: { [key: string]: string },
listeners?: { [key: string]: Function | Array<Function> },
parentComponent?: Object,
shouldProxy?: boolean
}
declare type NormalizedOptions = {
attachTo?: HTMLElement | string,
attachToDocument?: boolean,
propsData?: Object,
mocks: Object,
methods: { [key: string]: Function },
slots?: SlotsObject,
scopedSlots?: { [key: string]: string | Function },
localVue?: Component,
provide?: Object | Function,
stubs: { [name: string]: Component | true | string } | boolean,
context?: Object,
attrs?: { [key: string]: string },
listeners?: { [key: string]: Function | Array<Function> },
parentComponent?: Object,
sync: boolean,
shouldProxy?: boolean
}
declare type SlotValue = Component | string | Array<Component | string>
declare type SlotsObject = { [name: string]: SlotValue }
declare type Stubs =
| {
[name: string]: Component | true | string
}
| Array<string>