pub struct CompilerOptions {
Show 96 fields pub allow_js: Option<bool>, pub check_js: Option<bool>, pub composite: Option<bool>, pub declaration: Option<bool>, pub declaration_map: Option<bool>, pub downlevel_iteration: Option<bool>, pub import_helpers: Option<bool>, pub incremental: Option<bool>, pub isolated_modules: Option<bool>, pub jsx: Option<Jsx>, pub lib: Option<Vec<Lib>>, pub module: Option<Module>, pub no_emit: Option<bool>, pub out_dir: Option<String>, pub out_file: Option<String>, pub remove_comments: Option<bool>, pub root_dir: Option<String>, pub source_map: Option<bool>, pub target: Option<Target>, pub ts_build_info_file: Option<String>, pub always_strict: Option<bool>, pub no_implicit_any: Option<bool>, pub no_implicit_this: Option<bool>, pub strict: Option<bool>, pub strict_bind_call_apply: Option<bool>, pub strict_function_types: Option<bool>, pub strict_null_checks: Option<bool>, pub strict_property_initialization: Option<bool>, pub allow_synthetic_default_imports: Option<bool>, pub allow_umd_global_access: Option<bool>, pub base_url: Option<String>, pub es_module_interop: Option<bool>, pub module_resolution: Option<ModuleResolutionMode>, pub paths: Option<HashMap<String, Vec<String>>>, pub preserve_symlinks: Option<bool>, pub root_dirs: Option<Vec<String>>, pub type_roots: Option<Vec<String>>, pub types: Option<Vec<String>>, pub inline_source_map: Option<bool>, pub inline_sources: Option<bool>, pub map_root: Option<String>, pub source_root: Option<String>, pub no_fallthrough_cases_in_switch: Option<bool>, pub no_implicit_returns: Option<bool>, pub no_property_access_from_index_signature: Option<bool>, pub no_unchecked_indexed_access: Option<bool>, pub no_unused_locals: Option<bool>, pub emit_decorator_metadata: Option<bool>, pub experimental_decorators: Option<bool>, pub allow_unreachable_code: Option<bool>, pub allow_unused_labels: Option<bool>, pub assume_changes_only_affect_direct_dependencies: Option<bool>, pub charset: Option<String>, pub declaration_dir: Option<String>, pub diagnostics: Option<bool>, pub disable_referenced_project_load: Option<bool>, pub disable_size_limit: Option<bool>, pub disable_solution_searching: Option<bool>, pub disable_source_of_project_reference_redirect: Option<bool>, pub emit_bom: Option<bool>, pub emit_declaration_only: Option<bool>, pub explain_files: Option<bool>, pub extended_diagnostics: Option<bool>, pub force_consistent_casing_in_file_names: Option<bool>, pub generate_cpu_profile: Option<bool>, pub imports_not_used_as_values: Option<String>, pub jsx_factory: Option<String>, pub jsx_fragment_factory: Option<String>, pub jsx_import_source: Option<String>, pub keyof_strings_only: Option<bool>, pub list_emitted_files: Option<bool>, pub list_files: Option<bool>, pub max_node_module_js_depth: Option<u32>, pub no_emit_helpers: Option<bool>, pub no_emit_on_error: Option<bool>, pub no_error_truncation: Option<bool>, pub no_implicit_use_strict: Option<bool>, pub no_lib: Option<bool>, pub no_resolve: Option<bool>, pub no_strict_generic_checks: Option<bool>, pub out: Option<String>, pub preserve_const_enums: Option<bool>, pub react_namespace: Option<String>, pub resolve_json_module: Option<bool>, pub skip_default_lib_check: Option<bool>, pub skip_lib_check: Option<bool>, pub strip_internal: Option<bool>, pub suppress_excess_property_errors: Option<bool>, pub suppress_implicit_any_index_errors: Option<bool>, pub trace_resolution: Option<bool>, pub use_define_for_class_fields: Option<bool>, pub preserve_watch_output: Option<bool>, pub pretty: Option<bool>, pub fallback_polling: Option<String>, pub watch_directory: Option<String>, pub watch_file: Option<String>,
}
Expand description

These options make up the bulk of TypeScript’s configuration and it covers how the language should work.

Fields§

§allow_js: Option<bool>§check_js: Option<bool>§composite: Option<bool>§declaration: Option<bool>§declaration_map: Option<bool>§downlevel_iteration: Option<bool>§import_helpers: Option<bool>§incremental: Option<bool>§isolated_modules: Option<bool>§jsx: Option<Jsx>§lib: Option<Vec<Lib>>§module: Option<Module>§no_emit: Option<bool>§out_dir: Option<String>§out_file: Option<String>§remove_comments: Option<bool>§root_dir: Option<String>§source_map: Option<bool>§target: Option<Target>§ts_build_info_file: Option<String>§always_strict: Option<bool>§no_implicit_any: Option<bool>§no_implicit_this: Option<bool>§strict: Option<bool>§strict_bind_call_apply: Option<bool>§strict_function_types: Option<bool>§strict_null_checks: Option<bool>§strict_property_initialization: Option<bool>§allow_synthetic_default_imports: Option<bool>§allow_umd_global_access: Option<bool>§base_url: Option<String>§es_module_interop: Option<bool>§module_resolution: Option<ModuleResolutionMode>§paths: Option<HashMap<String, Vec<String>>>§preserve_symlinks: Option<bool>§root_dirs: Option<Vec<String>>§type_roots: Option<Vec<String>>§types: Option<Vec<String>>§inline_source_map: Option<bool>§inline_sources: Option<bool>§map_root: Option<String>§source_root: Option<String>§no_fallthrough_cases_in_switch: Option<bool>§no_implicit_returns: Option<bool>§no_property_access_from_index_signature: Option<bool>§no_unchecked_indexed_access: Option<bool>§no_unused_locals: Option<bool>§emit_decorator_metadata: Option<bool>§experimental_decorators: Option<bool>§allow_unreachable_code: Option<bool>§allow_unused_labels: Option<bool>§assume_changes_only_affect_direct_dependencies: Option<bool>§charset: Option<String>
👎Deprecated
§declaration_dir: Option<String>§diagnostics: Option<bool>
👎Deprecated
§disable_referenced_project_load: Option<bool>§disable_size_limit: Option<bool>§disable_solution_searching: Option<bool>§disable_source_of_project_reference_redirect: Option<bool>§emit_bom: Option<bool>§emit_declaration_only: Option<bool>§explain_files: Option<bool>§extended_diagnostics: Option<bool>§force_consistent_casing_in_file_names: Option<bool>§generate_cpu_profile: Option<bool>§imports_not_used_as_values: Option<String>§jsx_factory: Option<String>§jsx_fragment_factory: Option<String>§jsx_import_source: Option<String>§keyof_strings_only: Option<bool>§list_emitted_files: Option<bool>§list_files: Option<bool>§max_node_module_js_depth: Option<u32>§no_emit_helpers: Option<bool>§no_emit_on_error: Option<bool>§no_error_truncation: Option<bool>§no_implicit_use_strict: Option<bool>§no_lib: Option<bool>§no_resolve: Option<bool>§no_strict_generic_checks: Option<bool>§out: Option<String>
👎Deprecated
§preserve_const_enums: Option<bool>§react_namespace: Option<String>§resolve_json_module: Option<bool>§skip_default_lib_check: Option<bool>§skip_lib_check: Option<bool>§strip_internal: Option<bool>§suppress_excess_property_errors: Option<bool>§suppress_implicit_any_index_errors: Option<bool>§trace_resolution: Option<bool>§use_define_for_class_fields: Option<bool>§preserve_watch_output: Option<bool>§pretty: Option<bool>§fallback_polling: Option<String>§watch_directory: Option<String>§watch_file: Option<String>

Trait Implementations§

source§

impl Clone for CompilerOptions

source§

fn clone(&self) -> CompilerOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CompilerOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CompilerOptions

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,