summaryrefslogtreecommitdiff
path: root/cli/emit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/emit.rs')
-rw-r--r--cli/emit.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/emit.rs b/cli/emit.rs
index 204fefe08..c5562e1d4 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 check: flags::CheckFlag,
+ pub typecheck_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.check == flags::CheckFlag::Local {
+ let diagnostics = if options.typecheck_mode == flags::TypecheckMode::Local {
response.diagnostics.filter(|d| {
if let Some(file_name) = &d.file_name {
!file_name.starts_with("http")