diff options
Diffstat (limited to 'cli/emit.rs')
-rw-r--r-- | cli/emit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/emit.rs b/cli/emit.rs index 809260ac0..337895a10 100644 --- a/cli/emit.rs +++ b/cli/emit.rs @@ -339,7 +339,7 @@ pub fn is_emittable( pub struct CheckOptions { /// The check flag from the option which can effect the filtering of /// diagnostics in the emit result. - pub typecheck_mode: flags::TypecheckMode, + pub type_check_mode: flags::TypeCheckMode, /// Set the debug flag on the TypeScript type checker. pub debug: bool, /// If true, any files emitted will be cached, even if there are diagnostics @@ -430,7 +430,7 @@ pub fn check_and_maybe_emit( root_names, })?; - let diagnostics = if options.typecheck_mode == flags::TypecheckMode::Local { + let diagnostics = if options.type_check_mode == flags::TypeCheckMode::Local { response.diagnostics.filter(|d| { if let Some(file_name) = &d.file_name { !file_name.starts_with("http") |