pub struct TsConfig { /* private fields */ }Expand description
Partial tsconfig.json metadata.
Implementations§
Source§impl TsConfig
impl TsConfig
Sourcepub fn with_extends(self, extends: TsConfigExtends) -> TsConfig
pub fn with_extends(self, extends: TsConfigExtends) -> TsConfig
Sets the extends metadata.
Sourcepub fn with_compiler_options(
self,
compiler_options: CompilerOptions,
) -> TsConfig
pub fn with_compiler_options( self, compiler_options: CompilerOptions, ) -> TsConfig
Sets compiler options metadata.
Sourcepub fn with_include(self, include: TsConfigInclude) -> TsConfig
pub fn with_include(self, include: TsConfigInclude) -> TsConfig
Adds an include pattern.
Sourcepub fn with_exclude(self, exclude: TsConfigExclude) -> TsConfig
pub fn with_exclude(self, exclude: TsConfigExclude) -> TsConfig
Adds an exclude pattern.
Sourcepub const fn extends(&self) -> Option<&TsConfigExtends>
pub const fn extends(&self) -> Option<&TsConfigExtends>
Returns extends metadata.
Sourcepub const fn compiler_options(&self) -> &CompilerOptions
pub const fn compiler_options(&self) -> &CompilerOptions
Returns compiler options metadata.
Sourcepub fn include(&self) -> &[TsConfigInclude]
pub fn include(&self) -> &[TsConfigInclude]
Returns include patterns.
Sourcepub fn exclude(&self) -> &[TsConfigExclude]
pub fn exclude(&self) -> &[TsConfigExclude]
Returns exclude patterns.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TsConfig
impl<'de> Deserialize<'de> for TsConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TsConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TsConfig
impl Serialize for TsConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TsConfig
impl StructuralPartialEq for TsConfig
Auto Trait Implementations§
impl Freeze for TsConfig
impl RefUnwindSafe for TsConfig
impl Send for TsConfig
impl Sync for TsConfig
impl Unpin for TsConfig
impl UnsafeUnpin 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