diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-06-22 07:18:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 07:18:32 +1000 |
commit | 281c4cd8fcf5fd54f558a6922736def2c7804529 (patch) | |
tree | 65ac91c5a41a64dc0b85ee9c5949d7086e8620ef /cli/config_file.rs | |
parent | cda15f2a98b10330422d1c8352d163d703ee6a49 (diff) |
feat(cli): support "types" when type checking (#10999)
Fixes #10677
Diffstat (limited to 'cli/config_file.rs')
-rw-r--r-- | cli/config_file.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/config_file.rs b/cli/config_file.rs index a8bd40e69..5ea92447b 100644 --- a/cli/config_file.rs +++ b/cli/config_file.rs @@ -31,6 +31,14 @@ pub struct EmitConfigOptions { pub jsx_fragment_factory: String, } +/// There are certain compiler options that can impact what modules are part of +/// a module graph, which need to be deserialized into a structure for analysis. +#[derive(Debug, Deserialize)] +#[serde(rename_all = "camelCase")] +pub struct CompilerOptions { + pub types: Option<Vec<String>>, +} + /// A structure that represents a set of options that were ignored and the /// path those options came from. #[derive(Debug, Clone, PartialEq)] @@ -90,7 +98,6 @@ pub const IGNORED_COMPILER_OPTIONS: &[&str] = &[ "sourceMap", "sourceRoot", "target", - "types", "useDefineForClassFields", ]; |