We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TSImportEqualsDeclaration
1 parent 0955b08 commit 42b4e46Copy full SHA for 42b4e46
crates/oxc_transformer/src/typescript/module.rs
@@ -200,6 +200,10 @@ impl<'a> TypeScriptModule<'a, '_> {
200
/// import z = y.z // reference to y (unused)
201
/// ```
202
/// Processing `z` first marks `y`'s reference as Type, then `y` marks `x`, then `x` marks `foo`.
203
+ ///
204
+ /// Note: `TSImportEqualsDeclaration` can appear at the top-level and inside namespaces.
205
+ /// We only need to process top-level `Program` here because `TypeScriptNamespace`
206
+ /// has special handling that already covers the case for import equals inside namespaces.
207
pub fn mark_unused_import_equals_references_as_type(
208
&self,
209
stmts: &[Statement<'a>],
0 commit comments