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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
use serde::{Deserialize, Serialize};
#[derive(
Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize,
)]
#[non_exhaustive]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct Assumptions {
pub array_like_is_iterable: bool,
pub constant_reexports: bool,
pub constant_super: bool,
pub enumerable_module_meta: bool,
pub ignore_function_length: bool,
pub ignore_to_primitive_hint: bool,
pub iterable_is_array: bool,
pub mutable_template_object: bool,
pub no_class_calls: bool,
pub no_document_all: bool,
pub no_incomplete_ns_import_detection: bool,
pub no_new_arrows: bool,
pub object_rest_no_symbols: bool,
pub private_fields_as_properties: bool,
pub pure_getters: bool,
pub set_class_methods: bool,
pub set_computed_properties: bool,
pub set_public_class_fields: bool,
pub set_spread_properties: bool,
pub skip_for_of_iterator_closing: bool,
pub super_is_callable_constructor: bool,
}
impl Assumptions {
pub fn all() -> Self {
Self {
array_like_is_iterable: true,
constant_reexports: true,
constant_super: true,
enumerable_module_meta: true,
ignore_function_length: true,
ignore_to_primitive_hint: true,
iterable_is_array: true,
mutable_template_object: true,
no_class_calls: true,
no_document_all: true,
no_incomplete_ns_import_detection: true,
no_new_arrows: true,
object_rest_no_symbols: true,
private_fields_as_properties: true,
pure_getters: true,
set_class_methods: true,
set_computed_properties: true,
set_public_class_fields: true,
set_spread_properties: true,
skip_for_of_iterator_closing: true,
super_is_callable_constructor: true,
}
}
}