diff --git a/crates/biome_js_semantic/src/events.rs b/crates/biome_js_semantic/src/events.rs index e6201bee51ee..590e5950d4f9 100644 --- a/crates/biome_js_semantic/src/events.rs +++ b/crates/biome_js_semantic/src/events.rs @@ -818,6 +818,7 @@ impl SemanticEventExtractor { } JS_MODULE | JS_SCRIPT + | TS_DECLARATION_MODULE | JS_FUNCTION_DECLARATION | JS_FUNCTION_EXPORT_DEFAULT_DECLARATION | JS_FUNCTION_EXPRESSION diff --git a/crates/biome_js_semantic/src/semantic_model/builder.rs b/crates/biome_js_semantic/src/semantic_model/builder.rs index df2aebde63b5..4deb72f063a8 100644 --- a/crates/biome_js_semantic/src/semantic_model/builder.rs +++ b/crates/biome_js_semantic/src/semantic_model/builder.rs @@ -66,6 +66,7 @@ impl SemanticModelBuilder { // Accessible from scopes, closures JS_MODULE | JS_SCRIPT + | TS_DECLARATION_MODULE | JS_FUNCTION_DECLARATION | JS_FUNCTION_EXPRESSION | JS_ARROW_FUNCTION_EXPRESSION