diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-14 18:29:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-14 18:29:17 +0100 |
commit | 0d51c1f90ecc3d276e17564c2471604b6dc1f2bd (patch) | |
tree | 60664f2442272fbd3feb2605ce604e2e97390613 /cli/main.rs | |
parent | f3bb0a1a0e5ee3335d3c45db2be285791c7516cf (diff) |
feat: remove conditional unstable type-checking (#21825)
This commit removes conditional type-checking of unstable APIs.
Before this commit `deno check` (or any other type-checking command and
the LSP) would error out if there was an unstable API in the code, but not
`--unstable` flag provided.
This situation hinders DX and makes it harder to configure Deno. Failing
during runtime unless `--unstable` flag is provided is enough in this case.
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 922a45030..6a9ac3327 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -195,7 +195,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { }) } DenoSubcommand::Types => spawn_subcommand(async move { - let types = tsc::get_types_declaration_file_text(flags.unstable); + let types = tsc::get_types_declaration_file_text(); display::write_to_stdout_ignore_sigpipe(types.as_bytes()) }), #[cfg(feature = "upgrade")] |