pub trait ProjectReference {
type Tc: TsConfig;
// Required methods
fn path(&self) -> &Path;
fn tsconfig(&self) -> Option<Arc<Self::Tc>>;
fn set_tsconfig(&mut self, tsconfig: Arc<Self::Tc>);
}Expand description
Project Reference.
https://www.typescriptlang.org/docs/handbook/project-references.html
Required Associated Types§
Required Methods§
Sourcefn path(&self) -> &Path
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).
Sourcefn tsconfig(&self) -> Option<Arc<Self::Tc>>
fn tsconfig(&self) -> Option<Arc<Self::Tc>>
Returns the resolved tsconfig, if one has been set.
Sourcefn set_tsconfig(&mut self, tsconfig: Arc<Self::Tc>)
fn set_tsconfig(&mut self, tsconfig: Arc<Self::Tc>)
Sets the resolved tsconfig.
Implementors§
Source§impl ProjectReference for ProjectReferenceSerde
Available on crate feature fs_cache only.
impl ProjectReference for ProjectReferenceSerde
Available on crate feature
fs_cache only.