Skip to main content

ResolvedCompilerOptions

Struct ResolvedCompilerOptions 

Source
pub struct ResolvedCompilerOptions {
Show 37 fields pub printer: PrinterOptions, pub checker: CheckerOptions, pub jsx: Option<JsxEmit>, pub lib_files: Vec<PathBuf>, pub lib_is_default: bool, pub module_resolution: Option<ModuleResolutionKind>, pub resolve_package_json_exports: bool, pub resolve_package_json_imports: bool, pub module_suffixes: Vec<String>, pub resolve_json_module: bool, pub allow_arbitrary_extensions: bool, pub allow_importing_ts_extensions: bool, pub rewrite_relative_import_extensions: bool, pub types_versions_compiler_version: Option<String>, pub types: Option<Vec<String>>, pub type_roots: Option<Vec<PathBuf>>, pub base_url: Option<PathBuf>, pub paths: Option<Vec<PathMapping>>, pub root_dir: Option<PathBuf>, pub out_dir: Option<PathBuf>, pub out_file: Option<PathBuf>, pub declaration_dir: Option<PathBuf>, pub emit_declarations: bool, pub source_map: bool, pub declaration_map: bool, pub ts_build_info_file: Option<PathBuf>, pub incremental: bool, pub no_emit: bool, pub no_emit_on_error: bool, pub no_resolve: bool, pub import_helpers: bool, pub no_check: bool, pub custom_conditions: Vec<String>, pub es_module_interop: bool, pub allow_synthetic_default_imports: bool, pub allow_js: bool, pub check_js: bool,
}

Fields§

§printer: PrinterOptions§checker: CheckerOptions§jsx: Option<JsxEmit>§lib_files: Vec<PathBuf>§lib_is_default: bool§module_resolution: Option<ModuleResolutionKind>§resolve_package_json_exports: bool§resolve_package_json_imports: bool§module_suffixes: Vec<String>§resolve_json_module: bool§allow_arbitrary_extensions: bool§allow_importing_ts_extensions: bool§rewrite_relative_import_extensions: bool§types_versions_compiler_version: Option<String>§types: Option<Vec<String>>§type_roots: Option<Vec<PathBuf>>§base_url: Option<PathBuf>§paths: Option<Vec<PathMapping>>§root_dir: Option<PathBuf>§out_dir: Option<PathBuf>§out_file: Option<PathBuf>§declaration_dir: Option<PathBuf>§emit_declarations: bool§source_map: bool§declaration_map: bool§ts_build_info_file: Option<PathBuf>§incremental: bool§no_emit: bool§no_emit_on_error: bool§no_resolve: bool

Skip module graph expansion from imports/references when checking.

§import_helpers: bool§no_check: bool

Disable full type checking (only parse and emit errors reported).

§custom_conditions: Vec<String>

Custom conditions for package.json exports resolution

§es_module_interop: bool

Emit additional JavaScript to ease support for importing CommonJS modules

§allow_synthetic_default_imports: bool

Allow ‘import x from y’ when a module doesn’t have a default export

§allow_js: bool

Allow JavaScript files to be part of the program

§check_js: bool

Enable error reporting in type-checked JavaScript files

Implementations§

Trait Implementations§

Source§

impl Clone for ResolvedCompilerOptions

Source§

fn clone(&self) -> ResolvedCompilerOptions

Returns a duplicate 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 ResolvedCompilerOptions

Source§

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

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

impl Default for ResolvedCompilerOptions

Source§

fn default() -> ResolvedCompilerOptions

Returns the “default value” for a type. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more