From 0ac2a17a0fdb19672058c7e6449c686e2a18366e Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Thu, 29 Apr 2021 22:26:37 +1000 Subject: chore: remove unused keys from TsConfigJson (#10417) --- cli/tsc_config.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'cli') diff --git a/cli/tsc_config.rs b/cli/tsc_config.rs index 0d85adb2e..ab4bbe712 100644 --- a/cli/tsc_config.rs +++ b/cli/tsc_config.rs @@ -147,16 +147,17 @@ pub fn json_merge(a: &mut Value, b: &Value) { } } +/// A structure for deserializing a `tsconfig.json` file for the purposes of +/// being used internally within Deno. +/// +/// The only key in the JSON object that Deno cares about is the +/// `compilerOptions` property. A valid `tsconfig.json` file can also contain +/// the keys `exclude`, `extends`, `files`, `include`, `references`, and +/// `typeAcquisition` which are all "ignored" by Deno. #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] struct TsConfigJson { compiler_options: Option>, - exclude: Option>, - extends: Option, - files: Option>, - include: Option>, - references: Option, - type_acquisition: Option, } fn parse_compiler_options( -- cgit v1.2.3