Trait ProjectReference

Source
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

Required Associated Types§

Required Methods§

Source

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).

Source

fn tsconfig(&self) -> Option<Arc<Self::Tc>>

Returns the resolved tsconfig, if one has been set.

Source

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.