Skip to content

Commit d77e41b

Browse files
BushuoRoland Peelen
authored andcommitted
refactor: represent gentypeconfig as an opaque json value
1 parent a8c8172 commit d77e41b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bsconfig.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,8 @@ pub struct JsxSpecs {
133133
pub v3_dependencies: Option<Vec<String>>,
134134
}
135135

136-
/// Empty struct - the gentype config is loaded by bsc
137-
#[derive(Deserialize, Debug, Clone)]
138-
pub struct GenTypeConfig {}
136+
/// We do not care about the internal structure because the gentype config is loaded by bsc.
137+
pub type GenTypeConfig = serde_json::Value;
139138

140139
/// # bsconfig.json representation
141140
/// This is tricky, there is a lot of ambiguity. This is probably incomplete.

0 commit comments

Comments
 (0)