#[cfg_attr(feature = "serde-serialize", derive(serde::Deserialize), serde(default))]
#[cfg_attr(target_family = "wasm", derive(tsify::Tsify))]
#[allow(clippy::struct_excessive_bools)]
pub struct TypeCheckOptions {
pub constant_parameters: bool,
pub allow_elided_arguments: bool,
pub allow_extra_arguments: bool,
pub constant_function_declarations: bool,
pub strict_casts: bool,
pub debug_types: bool,
pub allow_cast: bool,
pub store_expression_type_mappings: bool,
pub parse_comments: bool,
pub lsp_mode: bool,
}
impl Default for TypeCheckOptions {
fn default() -> Self {
Self {
constant_parameters: false,
allow_elided_arguments: false,
allow_extra_arguments: false,
constant_function_declarations: true,
debug_types: false,
parse_comments: true,
strict_casts: false,
store_expression_type_mappings: false,
lsp_mode: false,
allow_cast: true,
}
}
}