summaryrefslogtreecommitdiff
path: root/cli/tools/check.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-21 11:46:40 -0400
committerGitHub <noreply@github.com>2023-03-21 15:46:40 +0000
commit2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 (patch)
tree04fb972934969cb01a52f3b9b8af0a17134ef5b6 /cli/tools/check.rs
parent0366d6833f25b786e897ce0d6393f692507f0532 (diff)
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet.
Diffstat (limited to 'cli/tools/check.rs')
-rw-r--r--cli/tools/check.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 77bc0f441..ec1f91a1d 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -264,8 +264,7 @@ fn get_tsc_roots(
}
}
- // todo(https://github.com/denoland/deno_graph/pull/253/): pre-allocate this
- let mut result = Vec::new();
+ let mut result = Vec::with_capacity(graph.specifiers_count());
if graph.has_node_specifier {
// inject a specifier that will resolve node types
result.push((
@@ -313,6 +312,7 @@ fn get_tsc_roots(
maybe_get_check_entry(module, check_js)
}
}));
+
result
}