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
Compiler Options.
Required Methods§
Sourcefn set_base_url(&mut self, base_url: PathBuf)
fn set_base_url(&mut self, base_url: PathBuf)
Sets the base URL.
Sourcefn paths(&self) -> Option<&CompilerOptionsPathsMap>
fn paths(&self) -> Option<&CompilerOptionsPathsMap>
Path aliases.
Sourcefn paths_mut(&mut self) -> Option<&mut CompilerOptionsPathsMap>
fn paths_mut(&mut self) -> Option<&mut CompilerOptionsPathsMap>
Returns a mutable reference to the path aliases.
Sourcefn set_paths(&mut self, paths: Option<CompilerOptionsPathsMap>)
fn set_paths(&mut self, paths: Option<CompilerOptionsPathsMap>)
Sets the path aliases.
Sourcefn paths_base(&self) -> &Path
fn paths_base(&self) -> &Path
The actual base from where path aliases are resolved.
Sourcefn set_paths_base(&mut self, paths_base: PathBuf)
fn set_paths_base(&mut self, paths_base: PathBuf)
Sets the path base.
Provided Methods§
Sourcefn experimental_decorators(&self) -> Option<&bool>
fn experimental_decorators(&self) -> Option<&bool>
Whether to enable experimental decorators.
Sourcefn set_experimental_decorators(&mut self, _experimental_decorators: bool)
fn set_experimental_decorators(&mut self, _experimental_decorators: bool)
Sets whether to enable experimental decorators.
Sourcefn emit_decorator_metadata(&self) -> Option<&bool>
fn emit_decorator_metadata(&self) -> Option<&bool>
Whether to emit decorator metadata.
Sourcefn set_emit_decorator_metadata(&mut self, _emit_decorator_metadata: bool)
fn set_emit_decorator_metadata(&mut self, _emit_decorator_metadata: bool)
Sets whether to emit decorator metadata.
Sourcefn jsx_factory(&self) -> Option<&str>
fn jsx_factory(&self) -> Option<&str>
JSX factory.
Sourcefn set_jsx_factory(&mut self, _jsx_factory: String)
fn set_jsx_factory(&mut self, _jsx_factory: String)
Sets JSX factory.
Sourcefn jsx_fragment_factory(&self) -> Option<&str>
fn jsx_fragment_factory(&self) -> Option<&str>
JSX fragment factory.
Sourcefn set_jsx_fragment_factory(&mut self, _jsx_fragment_factory: String)
fn set_jsx_fragment_factory(&mut self, _jsx_fragment_factory: String)
Sets JSX fragment factory.
Sourcefn jsx_import_source(&self) -> Option<&str>
fn jsx_import_source(&self) -> Option<&str>
JSX import source.
Sourcefn set_jsx_import_source(&mut self, _jsx_import_source: String)
fn set_jsx_import_source(&mut self, _jsx_import_source: String)
Sets JSX import source.
Implementors§
impl CompilerOptions for CompilerOptionsSerde
Available on crate feature
fs_cache only.