pub struct ProjectReference {
pub path: PathBuf,
pub tsconfig: Option<Arc<TsConfig>>,
}Expand description
Project Reference
https://www.typescriptlang.org/docs/handbook/project-references.html
Fields§
§path: PathBuf§tsconfig: Option<Arc<TsConfig>>Implementations§
Source§impl ProjectReference
impl ProjectReference
Sourcepub fn path(&self) -> &Path
pub fn path(&self) -> &Path
Returns the path to a directory containing a tsconfig.json file, or to
the config file itself (which may have any name).
Sourcepub fn tsconfig(&self) -> Option<Arc<TsConfig>>
pub fn tsconfig(&self) -> Option<Arc<TsConfig>>
Returns the resolved tsconfig, if one has been set.
Sourcepub fn set_tsconfig(&mut self, tsconfig: Arc<TsConfig>)
pub fn set_tsconfig(&mut self, tsconfig: Arc<TsConfig>)
Sets the resolved tsconfig.
Trait Implementations§
Source§impl Debug for ProjectReference
impl Debug for ProjectReference
Source§impl<'de> Deserialize<'de> for ProjectReference
impl<'de> Deserialize<'de> for ProjectReference
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 ProjectReference
impl RefUnwindSafe for ProjectReference
impl Send for ProjectReference
impl Sync for ProjectReference
impl Unpin for ProjectReference
impl UnwindSafe for ProjectReference
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