summaryrefslogtreecommitdiff
path: root/cli/emit.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-03-29 03:48:29 +0200
committerGitHub <noreply@github.com>2022-03-29 03:48:29 +0200
commit381d565acf974b0eab2a9b7fdcf8f9372cad0c33 (patch)
treee6183cfdb613b7a20cdaf285744e6cba0273f467 /cli/emit.rs
parent5a6a1eeb3918985ab003fd8d87faebb76410a242 (diff)
refactor(flags): rename CheckFlag to TypecheckMode (#14111)
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")