Struct deno_config::TsConfig
source · pub struct TsConfig(pub Value);
Expand description
A structure for managing the configuration of TypeScript
Tuple Fields§
§0: Value
Implementations§
source§impl TsConfig
impl TsConfig
pub fn as_bytes(&self) -> Vec<u8>
sourcepub fn get_check_js(&self) -> bool
pub fn get_check_js(&self) -> bool
Return the value of the checkJs
compiler option, defaulting to false
if not present.
pub fn get_declaration(&self) -> bool
sourcepub fn merge_tsconfig_from_config_file(
&mut self,
maybe_config_file: Option<&ConfigFile>
) -> Result<Option<IgnoredCompilerOptions>, AnyError>
pub fn merge_tsconfig_from_config_file( &mut self, maybe_config_file: Option<&ConfigFile> ) -> Result<Option<IgnoredCompilerOptions>, AnyError>
Take an optional user provided config file
which was passed in via the --config
flag and merge compilerOptions
with
the configuration. Returning the result which optionally contains any
compiler options that were ignored.
Trait Implementations§
Auto Trait Implementations§
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