Trait CompilerOptions

Source
pub trait CompilerOptions {
Show 19 methods // Required methods fn base_url(&self) -> Option<&Path>; fn set_base_url(&mut self, base_url: PathBuf); fn paths(&self) -> Option<&CompilerOptionsPathsMap>; fn paths_mut(&mut self) -> Option<&mut CompilerOptionsPathsMap>; fn set_paths(&mut self, paths: Option<CompilerOptionsPathsMap>); fn paths_base(&self) -> &Path; fn set_paths_base(&mut self, paths_base: PathBuf); // Provided methods fn experimental_decorators(&self) -> Option<&bool> { ... } fn set_experimental_decorators(&mut self, _experimental_decorators: bool) { ... } fn emit_decorator_metadata(&self) -> Option<&bool> { ... } fn set_emit_decorator_metadata(&mut self, _emit_decorator_metadata: bool) { ... } fn jsx(&self) -> Option<&str> { ... } fn set_jsx(&mut self, _jsx: String) { ... } fn jsx_factory(&self) -> Option<&str> { ... } fn set_jsx_factory(&mut self, _jsx_factory: String) { ... } fn jsx_fragment_factory(&self) -> Option<&str> { ... } fn set_jsx_fragment_factory(&mut self, _jsx_fragment_factory: String) { ... } fn jsx_import_source(&self) -> Option<&str> { ... } fn set_jsx_import_source(&mut self, _jsx_import_source: String) { ... }
}
Expand description

Required Methods§

Source

fn base_url(&self) -> Option<&Path>

Explicit base URL configured by the user.

Source

fn set_base_url(&mut self, base_url: PathBuf)

Sets the base URL.

Source

fn paths(&self) -> Option<&CompilerOptionsPathsMap>

Path aliases.

Source

fn paths_mut(&mut self) -> Option<&mut CompilerOptionsPathsMap>

Returns a mutable reference to the path aliases.

Source

fn set_paths(&mut self, paths: Option<CompilerOptionsPathsMap>)

Sets the path aliases.

Source

fn paths_base(&self) -> &Path

The actual base from where path aliases are resolved.

Source

fn set_paths_base(&mut self, paths_base: PathBuf)

Sets the path base.

Provided Methods§

Source

fn experimental_decorators(&self) -> Option<&bool>

Whether to enable experimental decorators.

Source

fn set_experimental_decorators(&mut self, _experimental_decorators: bool)

Sets whether to enable experimental decorators.

Source

fn emit_decorator_metadata(&self) -> Option<&bool>

Whether to emit decorator metadata.

Source

fn set_emit_decorator_metadata(&mut self, _emit_decorator_metadata: bool)

Sets whether to emit decorator metadata.

Source

fn jsx(&self) -> Option<&str>

JSX.

Source

fn set_jsx(&mut self, _jsx: String)

Sets JSX.

Source

fn jsx_factory(&self) -> Option<&str>

JSX factory.

Source

fn set_jsx_factory(&mut self, _jsx_factory: String)

Sets JSX factory.

Source

fn jsx_fragment_factory(&self) -> Option<&str>

JSX fragment factory.

Source

fn set_jsx_fragment_factory(&mut self, _jsx_fragment_factory: String)

Sets JSX fragment factory.

Source

fn jsx_import_source(&self) -> Option<&str>

JSX import source.

Source

fn set_jsx_import_source(&mut self, _jsx_import_source: String)

Sets JSX import source.

Implementors§

Source§

impl CompilerOptions for CompilerOptionsSerde

Available on crate feature fs_cache only.