pub struct TsConfig {
pub root: bool,
pub path: PathBuf,
pub files: Option<Vec<String>>,
pub include: Option<Vec<String>>,
pub exclude: Option<Vec<String>>,
pub extends: Option<ExtendsField>,
pub compiler_options: CompilerOptions,
pub references: Vec<ProjectReference>,
}Fields§
§root: boolWhether this is the caller tsconfig. Used for final template variable substitution when all configs are extended and merged.
path: PathBufPath to tsconfig.json. Contains the tsconfig.json filename.
files: Option<Vec<String>>§include: Option<Vec<String>>§exclude: Option<Vec<String>>§extends: Option<ExtendsField>§compiler_options: CompilerOptions§references: Vec<ProjectReference>Bubbled up project references with a reference to their tsconfig.
Implementations§
Source§impl TsConfig
impl TsConfig
Sourcepub fn root(&self) -> bool
pub fn root(&self) -> bool
Whether this is the caller tsconfig. Used for final template variable substitution when all configs are extended and merged.
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Returns the path where the tsconfig.json was found.
Contains the tsconfig.json filename.
Sourcepub fn compiler_options(&self) -> &CompilerOptions
pub fn compiler_options(&self) -> &CompilerOptions
Returns the compiler options configured in this tsconfig.
Sourcepub fn compiler_options_mut(&mut self) -> &mut CompilerOptions
pub fn compiler_options_mut(&mut self) -> &mut CompilerOptions
Returns a mutable reference to the compiler options configured in this tsconfig.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TsConfig
impl<'de> Deserialize<'de> for TsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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§
impl Freeze for TsConfig
impl RefUnwindSafe for TsConfig
impl Send for TsConfig
impl Sync for TsConfig
impl Unpin for TsConfig
impl UnwindSafe for TsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more